IPAllocationPolicy.fromJson constructor

IPAllocationPolicy.fromJson(
  1. Map json_
)

Implementation

IPAllocationPolicy.fromJson(core.Map json_)
    : this(
        additionalPodRangesConfig:
            json_.containsKey('additionalPodRangesConfig')
                ? AdditionalPodRangesConfig.fromJson(
                    json_['additionalPodRangesConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        clusterIpv4Cidr: json_.containsKey('clusterIpv4Cidr')
            ? json_['clusterIpv4Cidr'] as core.String
            : null,
        clusterIpv4CidrBlock: json_.containsKey('clusterIpv4CidrBlock')
            ? json_['clusterIpv4CidrBlock'] as core.String
            : null,
        clusterSecondaryRangeName:
            json_.containsKey('clusterSecondaryRangeName')
                ? json_['clusterSecondaryRangeName'] as core.String
                : null,
        createSubnetwork: json_.containsKey('createSubnetwork')
            ? json_['createSubnetwork'] as core.bool
            : null,
        defaultPodIpv4RangeUtilization: json_
                .containsKey('defaultPodIpv4RangeUtilization')
            ? (json_['defaultPodIpv4RangeUtilization'] as core.num).toDouble()
            : null,
        ipv6AccessType: json_.containsKey('ipv6AccessType')
            ? json_['ipv6AccessType'] as core.String
            : null,
        nodeIpv4Cidr: json_.containsKey('nodeIpv4Cidr')
            ? json_['nodeIpv4Cidr'] as core.String
            : null,
        nodeIpv4CidrBlock: json_.containsKey('nodeIpv4CidrBlock')
            ? json_['nodeIpv4CidrBlock'] as core.String
            : null,
        podCidrOverprovisionConfig:
            json_.containsKey('podCidrOverprovisionConfig')
                ? PodCIDROverprovisionConfig.fromJson(
                    json_['podCidrOverprovisionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        servicesIpv4Cidr: json_.containsKey('servicesIpv4Cidr')
            ? json_['servicesIpv4Cidr'] as core.String
            : null,
        servicesIpv4CidrBlock: json_.containsKey('servicesIpv4CidrBlock')
            ? json_['servicesIpv4CidrBlock'] as core.String
            : null,
        servicesIpv6CidrBlock: json_.containsKey('servicesIpv6CidrBlock')
            ? json_['servicesIpv6CidrBlock'] as core.String
            : null,
        servicesSecondaryRangeName:
            json_.containsKey('servicesSecondaryRangeName')
                ? json_['servicesSecondaryRangeName'] as core.String
                : null,
        stackType: json_.containsKey('stackType')
            ? json_['stackType'] as core.String
            : null,
        subnetIpv6CidrBlock: json_.containsKey('subnetIpv6CidrBlock')
            ? json_['subnetIpv6CidrBlock'] as core.String
            : null,
        subnetworkName: json_.containsKey('subnetworkName')
            ? json_['subnetworkName'] as core.String
            : null,
        tpuIpv4CidrBlock: json_.containsKey('tpuIpv4CidrBlock')
            ? json_['tpuIpv4CidrBlock'] as core.String
            : null,
        useIpAliases: json_.containsKey('useIpAliases')
            ? json_['useIpAliases'] as core.bool
            : null,
        useRoutes: json_.containsKey('useRoutes')
            ? json_['useRoutes'] as core.bool
            : null,
      );