VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.fromJson constructor

VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.fromJson(
  1. Map json_
)

Implementation

VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.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,
        ruleNumber: json_.containsKey('ruleNumber')
            ? json_['ruleNumber'] as core.int
            : null,
      );