RouterStatusNatStatus.fromJson constructor
RouterStatusNatStatus.fromJson(
- Map json_
Implementation
RouterStatusNatStatus.fromJson(core.Map json_)
: this(
autoAllocatedNatIps: json_.containsKey('autoAllocatedNatIps')
? (json_['autoAllocatedNatIps'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
drainAutoAllocatedNatIps:
json_.containsKey('drainAutoAllocatedNatIps')
? (json_['drainAutoAllocatedNatIps'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
drainUserAllocatedNatIps:
json_.containsKey('drainUserAllocatedNatIps')
? (json_['drainUserAllocatedNatIps'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
minExtraNatIpsNeeded: json_.containsKey('minExtraNatIpsNeeded')
? json_['minExtraNatIpsNeeded'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
numVmEndpointsWithNatMappings:
json_.containsKey('numVmEndpointsWithNatMappings')
? json_['numVmEndpointsWithNatMappings'] as core.int
: null,
ruleStatus: json_.containsKey('ruleStatus')
? (json_['ruleStatus'] as core.List)
.map((value) => RouterStatusNatStatusNatRuleStatus.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
userAllocatedNatIpResources:
json_.containsKey('userAllocatedNatIpResources')
? (json_['userAllocatedNatIpResources'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
userAllocatedNatIps: json_.containsKey('userAllocatedNatIps')
? (json_['userAllocatedNatIps'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);