Network.fromJson constructor
Network.fromJson(
- Map json_
Implementation
Network.fromJson(core.Map json_)
: this(
IPv4Range: json_.containsKey('IPv4Range')
? json_['IPv4Range'] as core.String
: null,
autoCreateSubnetworks: json_.containsKey('autoCreateSubnetworks')
? json_['autoCreateSubnetworks'] as core.bool
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enableUlaInternalIpv6: json_.containsKey('enableUlaInternalIpv6')
? json_['enableUlaInternalIpv6'] as core.bool
: null,
firewallPolicy: json_.containsKey('firewallPolicy')
? json_['firewallPolicy'] as core.String
: null,
gatewayIPv4: json_.containsKey('gatewayIPv4')
? json_['gatewayIPv4'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
internalIpv6Range: json_.containsKey('internalIpv6Range')
? json_['internalIpv6Range'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
mtu: json_.containsKey('mtu') ? json_['mtu'] as core.int : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networkFirewallPolicyEnforcementOrder: json_
.containsKey('networkFirewallPolicyEnforcementOrder')
? json_['networkFirewallPolicyEnforcementOrder'] as core.String
: null,
peerings: json_.containsKey('peerings')
? (json_['peerings'] as core.List)
.map((value) => NetworkPeering.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
routingConfig: json_.containsKey('routingConfig')
? NetworkRoutingConfig.fromJson(
json_['routingConfig'] as core.Map<core.String, core.dynamic>)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
selfLinkWithId: json_.containsKey('selfLinkWithId')
? json_['selfLinkWithId'] as core.String
: null,
subnetworks: json_.containsKey('subnetworks')
? (json_['subnetworks'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);