AutoprovisioningNodePoolDefaults.fromJson constructor

AutoprovisioningNodePoolDefaults.fromJson(
  1. Map json_
)

Implementation

AutoprovisioningNodePoolDefaults.fromJson(core.Map json_)
    : this(
        bootDiskKmsKey: json_.containsKey('bootDiskKmsKey')
            ? json_['bootDiskKmsKey'] as core.String
            : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.int
            : null,
        diskType: json_.containsKey('diskType')
            ? json_['diskType'] as core.String
            : null,
        imageType: json_.containsKey('imageType')
            ? json_['imageType'] as core.String
            : null,
        insecureKubeletReadonlyPortEnabled:
            json_.containsKey('insecureKubeletReadonlyPortEnabled')
                ? json_['insecureKubeletReadonlyPortEnabled'] as core.bool
                : null,
        management: json_.containsKey('management')
            ? NodeManagement.fromJson(
                json_['management'] as core.Map<core.String, core.dynamic>)
            : null,
        minCpuPlatform: json_.containsKey('minCpuPlatform')
            ? json_['minCpuPlatform'] as core.String
            : null,
        oauthScopes: json_.containsKey('oauthScopes')
            ? (json_['oauthScopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        shieldedInstanceConfig: json_.containsKey('shieldedInstanceConfig')
            ? ShieldedInstanceConfig.fromJson(json_['shieldedInstanceConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        upgradeSettings: json_.containsKey('upgradeSettings')
            ? UpgradeSettings.fromJson(json_['upgradeSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
      );