GoogleCloudBillingBudgetsV1Filter.fromJson constructor

GoogleCloudBillingBudgetsV1Filter.fromJson(
  1. Map json_
)

Implementation

GoogleCloudBillingBudgetsV1Filter.fromJson(core.Map json_)
    : this(
        calendarPeriod: json_.containsKey('calendarPeriod')
            ? json_['calendarPeriod'] as core.String
            : null,
        creditTypes: json_.containsKey('creditTypes')
            ? (json_['creditTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        creditTypesTreatment: json_.containsKey('creditTypesTreatment')
            ? json_['creditTypesTreatment'] as core.String
            : null,
        customPeriod: json_.containsKey('customPeriod')
            ? GoogleCloudBillingBudgetsV1CustomPeriod.fromJson(
                json_['customPeriod'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.List,
                ),
              )
            : null,
        projects: json_.containsKey('projects')
            ? (json_['projects'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        resourceAncestors: json_.containsKey('resourceAncestors')
            ? (json_['resourceAncestors'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        services: json_.containsKey('services')
            ? (json_['services'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        subaccounts: json_.containsKey('subaccounts')
            ? (json_['subaccounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );