Project.fromJson constructor

Project.fromJson(
  1. Map json_
)

Implementation

Project.fromJson(core.Map json_)
    : this(
        cloudArmorTier: json_.containsKey('cloudArmorTier')
            ? json_['cloudArmorTier'] as core.String
            : null,
        commonInstanceMetadata: json_.containsKey('commonInstanceMetadata')
            ? Metadata.fromJson(json_['commonInstanceMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        defaultNetworkTier: json_.containsKey('defaultNetworkTier')
            ? json_['defaultNetworkTier'] as core.String
            : null,
        defaultServiceAccount: json_.containsKey('defaultServiceAccount')
            ? json_['defaultServiceAccount'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        enabledFeatures: json_.containsKey('enabledFeatures')
            ? (json_['enabledFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        quotas: json_.containsKey('quotas')
            ? (json_['quotas'] as core.List)
                .map((value) => Quota.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        usageExportLocation: json_.containsKey('usageExportLocation')
            ? UsageExportLocation.fromJson(json_['usageExportLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
        vmDnsSetting: json_.containsKey('vmDnsSetting')
            ? json_['vmDnsSetting'] as core.String
            : null,
        xpnProjectStatus: json_.containsKey('xpnProjectStatus')
            ? json_['xpnProjectStatus'] as core.String
            : null,
      );