NodeNetworkConfig.fromJson constructor

NodeNetworkConfig.fromJson(
  1. Map json_
)

Implementation

NodeNetworkConfig.fromJson(core.Map json_)
    : this(
        additionalNodeNetworkConfigs:
            json_.containsKey('additionalNodeNetworkConfigs')
                ? (json_['additionalNodeNetworkConfigs'] as core.List)
                    .map((value) => AdditionalNodeNetworkConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        additionalPodNetworkConfigs:
            json_.containsKey('additionalPodNetworkConfigs')
                ? (json_['additionalPodNetworkConfigs'] as core.List)
                    .map((value) => AdditionalPodNetworkConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        createPodRange: json_.containsKey('createPodRange')
            ? json_['createPodRange'] as core.bool
            : null,
        enablePrivateNodes: json_.containsKey('enablePrivateNodes')
            ? json_['enablePrivateNodes'] as core.bool
            : null,
        networkPerformanceConfig:
            json_.containsKey('networkPerformanceConfig')
                ? NetworkPerformanceConfig.fromJson(
                    json_['networkPerformanceConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        podCidrOverprovisionConfig:
            json_.containsKey('podCidrOverprovisionConfig')
                ? PodCIDROverprovisionConfig.fromJson(
                    json_['podCidrOverprovisionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        podIpv4CidrBlock: json_.containsKey('podIpv4CidrBlock')
            ? json_['podIpv4CidrBlock'] as core.String
            : null,
        podIpv4RangeUtilization: json_.containsKey('podIpv4RangeUtilization')
            ? (json_['podIpv4RangeUtilization'] as core.num).toDouble()
            : null,
        podRange: json_.containsKey('podRange')
            ? json_['podRange'] as core.String
            : null,
      );