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_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notificationsRule: json_.containsKey('notificationsRule')
            ? GoogleCloudBillingBudgetsV1NotificationsRule.fromJson(
                json_['notificationsRule']
                    as core.Map<core.String, core.dynamic>)
            : null,
        ownershipScope: json_.containsKey('ownershipScope')
            ? json_['ownershipScope'] as core.String
            : null,
        thresholdRules: json_.containsKey('thresholdRules')
            ? (json_['thresholdRules'] as core.List)
                .map((value) =>
                    GoogleCloudBillingBudgetsV1ThresholdRule.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );