Zone.fromJson constructor
Zone.fromJson(
- Map json_
Implementation
Zone.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
boundary: json_.containsKey('boundary')
? ZoneBoundary.fromJson(
json_['boundary'] as core.Map<core.String, core.dynamic>)
: null,
childContainer: json_.containsKey('childContainer')
? (json_['childContainer'] as core.List)
.map((value) => ZoneChildContainer.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
containerId: json_.containsKey('containerId')
? json_['containerId'] as core.String
: null,
fingerprint: json_.containsKey('fingerprint')
? json_['fingerprint'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
path: json_.containsKey('path') ? json_['path'] as core.String : null,
tagManagerUrl: json_.containsKey('tagManagerUrl')
? json_['tagManagerUrl'] as core.String
: null,
typeRestriction: json_.containsKey('typeRestriction')
? ZoneTypeRestriction.fromJson(json_['typeRestriction']
as core.Map<core.String, core.dynamic>)
: null,
workspaceId: json_.containsKey('workspaceId')
? json_['workspaceId'] as core.String
: null,
zoneId: json_.containsKey('zoneId')
? json_['zoneId'] as core.String
: null,
);