InternalRange.fromJson constructor
InternalRange.fromJson(
- Map json_
Implementation
InternalRange.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,
ipCidrRange: json_.containsKey('ipCidrRange')
? json_['ipCidrRange'] 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,
overlaps: json_.containsKey('overlaps')
? (json_['overlaps'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
peering: json_.containsKey('peering')
? json_['peering'] as core.String
: null,
prefixLength: json_.containsKey('prefixLength')
? json_['prefixLength'] as core.int
: null,
targetCidrRange: json_.containsKey('targetCidrRange')
? (json_['targetCidrRange'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
usage:
json_.containsKey('usage') ? json_['usage'] as core.String : null,
users: json_.containsKey('users')
? (json_['users'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);