ExternalAccessRule.fromJson constructor
ExternalAccessRule.fromJson(
- Map json_
Implementation
ExternalAccessRule.fromJson(core.Map json_)
: this(
action: json_.containsKey('action')
? json_['action'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
destinationIpRanges: json_.containsKey('destinationIpRanges')
? (json_['destinationIpRanges'] as core.List)
.map((value) => IpRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
destinationPorts: json_.containsKey('destinationPorts')
? (json_['destinationPorts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
ipProtocol: json_.containsKey('ipProtocol')
? json_['ipProtocol'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
priority: json_.containsKey('priority')
? json_['priority'] as core.int
: null,
sourceIpRanges: json_.containsKey('sourceIpRanges')
? (json_['sourceIpRanges'] as core.List)
.map((value) => IpRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sourcePorts: json_.containsKey('sourcePorts')
? (json_['sourcePorts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);