RouterStatusNatStatusNatRuleStatus.fromJson constructor

RouterStatusNatStatusNatRuleStatus.fromJson(
  1. Map json_
)

Implementation

RouterStatusNatStatusNatRuleStatus.fromJson(core.Map json_)
    : this(
        activeNatIps: json_.containsKey('activeNatIps')
            ? (json_['activeNatIps'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        drainNatIps: json_.containsKey('drainNatIps')
            ? (json_['drainNatIps'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        minExtraIpsNeeded: json_.containsKey('minExtraIpsNeeded')
            ? json_['minExtraIpsNeeded'] as core.int
            : null,
        numVmEndpointsWithNatMappings:
            json_.containsKey('numVmEndpointsWithNatMappings')
                ? json_['numVmEndpointsWithNatMappings'] as core.int
                : null,
        ruleNumber: json_.containsKey('ruleNumber')
            ? json_['ruleNumber'] as core.int
            : null,
      );