Network.fromJson constructor
Network.fromJson(
- Map json_
Implementation
Network.fromJson(core.Map json_)
: this(
cidr: json_.containsKey('cidr') ? json_['cidr'] as core.String : null,
gatewayIp: json_.containsKey('gatewayIp')
? json_['gatewayIp'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
ipAddress: json_.containsKey('ipAddress')
? json_['ipAddress'] as core.String
: null,
jumboFramesEnabled: json_.containsKey('jumboFramesEnabled')
? json_['jumboFramesEnabled'] as core.bool
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
macAddress: json_.containsKey('macAddress')
? (json_['macAddress'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
mountPoints: json_.containsKey('mountPoints')
? (json_['mountPoints'] as core.List)
.map((value) => NetworkMountPoint.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
pod: json_.containsKey('pod') ? json_['pod'] as core.String : null,
reservations: json_.containsKey('reservations')
? (json_['reservations'] as core.List)
.map((value) => NetworkAddressReservation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
servicesCidr: json_.containsKey('servicesCidr')
? json_['servicesCidr'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
vlanId: json_.containsKey('vlanId')
? json_['vlanId'] as core.String
: null,
vrf: json_.containsKey('vrf')
? VRF
.fromJson(json_['vrf'] as core.Map<core.String, core.dynamic>)
: null,
vrfAttachment: json_.containsKey('vrfAttachment')
? json_['vrfAttachment'] as core.String
: null,
);