Gateway.fromJson constructor
Gateway.fromJson(
- Map json_
Implementation
Gateway.fromJson(core.Map json_)
: this(
addresses: json_.containsKey('addresses')
? (json_['addresses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
certificateUrls: json_.containsKey('certificateUrls')
? (json_['certificateUrls'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
envoyHeaders: json_.containsKey('envoyHeaders')
? json_['envoyHeaders'] as core.String
: null,
gatewaySecurityPolicy: json_.containsKey('gatewaySecurityPolicy')
? json_['gatewaySecurityPolicy'] as core.String
: null,
ipVersion: json_.containsKey('ipVersion')
? json_['ipVersion'] as core.String
: 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,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
ports: json_.containsKey('ports')
? (json_['ports'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
scope:
json_.containsKey('scope') ? json_['scope'] as core.String : null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
serverTlsPolicy: json_.containsKey('serverTlsPolicy')
? json_['serverTlsPolicy'] as core.String
: null,
subnetwork: json_.containsKey('subnetwork')
? json_['subnetwork'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);