GoogleCloudBillingBudgetsV1Budget.fromJson constructor

GoogleCloudBillingBudgetsV1Budget.fromJson(
  1. Map json_
)

Implementation

GoogleCloudBillingBudgetsV1Budget.fromJson(core.Map json_)
  : this(
      amount: json_.containsKey('amount')
          ? GoogleCloudBillingBudgetsV1BudgetAmount.fromJson(
              json_['amount'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      budgetFilter: json_.containsKey('budgetFilter')
          ? GoogleCloudBillingBudgetsV1Filter.fromJson(
              json_['budgetFilter'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      displayName: json_['displayName'] as core.String?,
      etag: json_['etag'] as core.String?,
      name: json_['name'] as core.String?,
      notificationsRule: json_.containsKey('notificationsRule')
          ? GoogleCloudBillingBudgetsV1NotificationsRule.fromJson(
              json_['notificationsRule']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      ownershipScope: json_['ownershipScope'] as core.String?,
      thresholdRules: (json_['thresholdRules'] as core.List?)
          ?.map(
            (value) => GoogleCloudBillingBudgetsV1ThresholdRule.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );