PhishingSpike.fromJson constructor
PhishingSpike.fromJson(
- Map _json
Implementation
PhishingSpike.fromJson(core.Map _json)
: this(
domainId: _json.containsKey('domainId')
? DomainId.fromJson(
_json['domainId'] as core.Map<core.String, core.dynamic>)
: null,
isInternal: _json.containsKey('isInternal')
? _json['isInternal'] as core.bool
: null,
maliciousEntity: _json.containsKey('maliciousEntity')
? MaliciousEntity.fromJson(_json['maliciousEntity']
as core.Map<core.String, core.dynamic>)
: null,
messages: _json.containsKey('messages')
? (_json['messages'] as core.List)
.map<GmailMessageInfo>((value) => GmailMessageInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);