VmEndpointNatMappingsInterfaceNatMappings.fromJson constructor

VmEndpointNatMappingsInterfaceNatMappings.fromJson(
  1. Map json_
)

Implementation

VmEndpointNatMappingsInterfaceNatMappings.fromJson(core.Map json_)
    : this(
        drainNatIpPortRanges: json_.containsKey('drainNatIpPortRanges')
            ? (json_['drainNatIpPortRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        natIpPortRanges: json_.containsKey('natIpPortRanges')
            ? (json_['natIpPortRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        numTotalDrainNatPorts: json_.containsKey('numTotalDrainNatPorts')
            ? json_['numTotalDrainNatPorts'] as core.int
            : null,
        numTotalNatPorts: json_.containsKey('numTotalNatPorts')
            ? json_['numTotalNatPorts'] as core.int
            : null,
        ruleMappings: json_.containsKey('ruleMappings')
            ? (json_['ruleMappings'] as core.List)
                .map((value) =>
                    VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourceAliasIpRange: json_.containsKey('sourceAliasIpRange')
            ? json_['sourceAliasIpRange'] as core.String
            : null,
        sourceVirtualIp: json_.containsKey('sourceVirtualIp')
            ? json_['sourceVirtualIp'] as core.String
            : null,
      );