Endpoint.fromJson constructor
Endpoint.fromJson(
- Map json_
Implementation
Endpoint.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
endpointForwardingRule: json_.containsKey('endpointForwardingRule')
? json_['endpointForwardingRule'] as core.String
: null,
endpointIp: json_.containsKey('endpointIp')
? json_['endpointIp'] 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,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
threatExceptions: json_.containsKey('threatExceptions')
? (json_['threatExceptions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
trafficLogs: json_.containsKey('trafficLogs')
? json_['trafficLogs'] as core.bool
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);