TenantProjectConfig.fromJson constructor

TenantProjectConfig.fromJson(
  1. Map json_
)

Implementation

TenantProjectConfig.fromJson(core.Map json_)
    : this(
        billingConfig: json_.containsKey('billingConfig')
            ? BillingConfig.fromJson(
                json_['billingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        folder: json_.containsKey('folder')
            ? json_['folder'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        serviceAccountConfig: json_.containsKey('serviceAccountConfig')
            ? ServiceAccountConfig.fromJson(json_['serviceAccountConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        services: json_.containsKey('services')
            ? (json_['services'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tenantProjectPolicy: json_.containsKey('tenantProjectPolicy')
            ? TenantProjectPolicy.fromJson(json_['tenantProjectPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
      );