ConnectivityTest.fromJson constructor
ConnectivityTest.fromJson(
- Map json_
Implementation
ConnectivityTest.fromJson(core.Map json_)
: this(
bypassFirewallChecks: json_.containsKey('bypassFirewallChecks')
? json_['bypassFirewallChecks'] as core.bool
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
destination: json_.containsKey('destination')
? Endpoint.fromJson(
json_['destination'] as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] 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,
probingDetails: json_.containsKey('probingDetails')
? ProbingDetails.fromJson(json_['probingDetails']
as core.Map<core.String, core.dynamic>)
: null,
protocol: json_.containsKey('protocol')
? json_['protocol'] as core.String
: null,
reachabilityDetails: json_.containsKey('reachabilityDetails')
? ReachabilityDetails.fromJson(json_['reachabilityDetails']
as core.Map<core.String, core.dynamic>)
: null,
relatedProjects: json_.containsKey('relatedProjects')
? (json_['relatedProjects'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
source: json_.containsKey('source')
? Endpoint.fromJson(
json_['source'] as core.Map<core.String, core.dynamic>)
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);