PolicyIssue.fromJson constructor
PolicyIssue.fromJson(
- Map json_
Implementation
PolicyIssue.fromJson(core.Map json_)
: this(
action: json_.containsKey('action')
? json_['action'] as core.String
: null,
adClients: json_.containsKey('adClients')
? (json_['adClients'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
adRequestCount: json_.containsKey('adRequestCount')
? json_['adRequestCount'] as core.String
: null,
entityType: json_.containsKey('entityType')
? json_['entityType'] as core.String
: null,
firstDetectedDate: json_.containsKey('firstDetectedDate')
? Date.fromJson(json_['firstDetectedDate']
as core.Map<core.String, core.dynamic>)
: null,
lastDetectedDate: json_.containsKey('lastDetectedDate')
? Date.fromJson(json_['lastDetectedDate']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
policyTopics: json_.containsKey('policyTopics')
? (json_['policyTopics'] as core.List)
.map((value) => PolicyTopic.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
site: json_.containsKey('site') ? json_['site'] as core.String : null,
siteSection: json_.containsKey('siteSection')
? json_['siteSection'] as core.String
: null,
uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
warningEscalationDate: json_.containsKey('warningEscalationDate')
? Date.fromJson(json_['warningEscalationDate']
as core.Map<core.String, core.dynamic>)
: null,
);