Subnetwork.fromJson constructor
Subnetwork.fromJson(
- Map json_
Implementation
Subnetwork.fromJson(core.Map json_)
: this(
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enableFlowLogs: json_.containsKey('enableFlowLogs')
? json_['enableFlowLogs'] as core.bool
: null,
externalIpv6Prefix: json_.containsKey('externalIpv6Prefix')
? json_['externalIpv6Prefix'] as core.String
: null,
fingerprint: json_.containsKey('fingerprint')
? json_['fingerprint'] as core.String
: null,
gatewayAddress: json_.containsKey('gatewayAddress')
? json_['gatewayAddress'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
internalIpv6Prefix: json_.containsKey('internalIpv6Prefix')
? json_['internalIpv6Prefix'] as core.String
: null,
ipCidrRange: json_.containsKey('ipCidrRange')
? json_['ipCidrRange'] as core.String
: null,
ipv6AccessType: json_.containsKey('ipv6AccessType')
? json_['ipv6AccessType'] as core.String
: null,
ipv6CidrRange: json_.containsKey('ipv6CidrRange')
? json_['ipv6CidrRange'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
logConfig: json_.containsKey('logConfig')
? SubnetworkLogConfig.fromJson(
json_['logConfig'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
privateIpGoogleAccess: json_.containsKey('privateIpGoogleAccess')
? json_['privateIpGoogleAccess'] as core.bool
: null,
privateIpv6GoogleAccess: json_.containsKey('privateIpv6GoogleAccess')
? json_['privateIpv6GoogleAccess'] as core.String
: null,
purpose: json_.containsKey('purpose')
? json_['purpose'] as core.String
: null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
reservedInternalRange: json_.containsKey('reservedInternalRange')
? json_['reservedInternalRange'] as core.String
: null,
role: json_.containsKey('role') ? json_['role'] as core.String : null,
secondaryIpRanges: json_.containsKey('secondaryIpRanges')
? (json_['secondaryIpRanges'] as core.List)
.map((value) => SubnetworkSecondaryRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
stackType: json_.containsKey('stackType')
? json_['stackType'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);