NetworkConfig.fromJson constructor

NetworkConfig.fromJson(
  1. Map json_
)

Implementation

NetworkConfig.fromJson(core.Map json_)
    : this(
        datapathProvider: json_.containsKey('datapathProvider')
            ? json_['datapathProvider'] as core.String
            : null,
        defaultSnatStatus: json_.containsKey('defaultSnatStatus')
            ? DefaultSnatStatus.fromJson(json_['defaultSnatStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        dnsConfig: json_.containsKey('dnsConfig')
            ? DNSConfig.fromJson(
                json_['dnsConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        enableCiliumClusterwideNetworkPolicy:
            json_.containsKey('enableCiliumClusterwideNetworkPolicy')
                ? json_['enableCiliumClusterwideNetworkPolicy'] as core.bool
                : null,
        enableFqdnNetworkPolicy: json_.containsKey('enableFqdnNetworkPolicy')
            ? json_['enableFqdnNetworkPolicy'] as core.bool
            : null,
        enableIntraNodeVisibility:
            json_.containsKey('enableIntraNodeVisibility')
                ? json_['enableIntraNodeVisibility'] as core.bool
                : null,
        enableL4ilbSubsetting: json_.containsKey('enableL4ilbSubsetting')
            ? json_['enableL4ilbSubsetting'] as core.bool
            : null,
        enableMultiNetworking: json_.containsKey('enableMultiNetworking')
            ? json_['enableMultiNetworking'] as core.bool
            : null,
        gatewayApiConfig: json_.containsKey('gatewayApiConfig')
            ? GatewayAPIConfig.fromJson(json_['gatewayApiConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        inTransitEncryptionConfig:
            json_.containsKey('inTransitEncryptionConfig')
                ? json_['inTransitEncryptionConfig'] as core.String
                : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkPerformanceConfig:
            json_.containsKey('networkPerformanceConfig')
                ? ClusterNetworkPerformanceConfig.fromJson(
                    json_['networkPerformanceConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        privateIpv6GoogleAccess: json_.containsKey('privateIpv6GoogleAccess')
            ? json_['privateIpv6GoogleAccess'] as core.String
            : null,
        serviceExternalIpsConfig:
            json_.containsKey('serviceExternalIpsConfig')
                ? ServiceExternalIPsConfig.fromJson(
                    json_['serviceExternalIpsConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
      );