GoogleSecuritySafebrowsingV4ThreatHit.fromJson constructor
GoogleSecuritySafebrowsingV4ThreatHit.fromJson(
- Map json_
Implementation
GoogleSecuritySafebrowsingV4ThreatHit.fromJson(core.Map json_)
: this(
clientInfo: json_.containsKey('clientInfo')
? GoogleSecuritySafebrowsingV4ClientInfo.fromJson(
json_['clientInfo'] as core.Map<core.String, core.dynamic>)
: null,
entry: json_.containsKey('entry')
? GoogleSecuritySafebrowsingV4ThreatEntry.fromJson(
json_['entry'] as core.Map<core.String, core.dynamic>)
: null,
platformType: json_.containsKey('platformType')
? json_['platformType'] as core.String
: null,
resources: json_.containsKey('resources')
? (json_['resources'] as core.List)
.map((value) =>
GoogleSecuritySafebrowsingV4ThreatHitThreatSource
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
threatType: json_.containsKey('threatType')
? json_['threatType'] as core.String
: null,
userInfo: json_.containsKey('userInfo')
? GoogleSecuritySafebrowsingV4ThreatHitUserInfo.fromJson(
json_['userInfo'] as core.Map<core.String, core.dynamic>)
: null,
);