Tag.fromJson constructor
Tag.fromJson(
- Map json_
Implementation
Tag.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
blockingRuleId: json_.containsKey('blockingRuleId')
? (json_['blockingRuleId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
blockingTriggerId: json_.containsKey('blockingTriggerId')
? (json_['blockingTriggerId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
containerId: json_.containsKey('containerId')
? json_['containerId'] as core.String
: null,
fingerprint: json_.containsKey('fingerprint')
? json_['fingerprint'] as core.String
: null,
firingRuleId: json_.containsKey('firingRuleId')
? (json_['firingRuleId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
firingTriggerId: json_.containsKey('firingTriggerId')
? (json_['firingTriggerId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
liveOnly: json_.containsKey('liveOnly')
? json_['liveOnly'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
parameter: json_.containsKey('parameter')
? (json_['parameter'] as core.List)
.map((value) => Parameter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
parentFolderId: json_.containsKey('parentFolderId')
? json_['parentFolderId'] as core.String
: null,
paused:
json_.containsKey('paused') ? json_['paused'] as core.bool : null,
priority: json_.containsKey('priority')
? Parameter.fromJson(
json_['priority'] as core.Map<core.String, core.dynamic>)
: null,
scheduleEndMs: json_.containsKey('scheduleEndMs')
? json_['scheduleEndMs'] as core.String
: null,
scheduleStartMs: json_.containsKey('scheduleStartMs')
? json_['scheduleStartMs'] as core.String
: null,
setupTag: json_.containsKey('setupTag')
? (json_['setupTag'] as core.List)
.map((value) => SetupTag.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tagFiringOption: json_.containsKey('tagFiringOption')
? json_['tagFiringOption'] as core.String
: null,
tagId:
json_.containsKey('tagId') ? json_['tagId'] as core.String : null,
teardownTag: json_.containsKey('teardownTag')
? (json_['teardownTag'] as core.List)
.map((value) => TeardownTag.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);