Cve.fromJson constructor
Cve.fromJson(
- Map json_
Implementation
Cve.fromJson(core.Map json_)
: this(
cvssv3: json_.containsKey('cvssv3')
? Cvssv3.fromJson(
json_['cvssv3'] as core.Map<core.String, core.dynamic>)
: null,
exploitationActivity: json_.containsKey('exploitationActivity')
? json_['exploitationActivity'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
impact: json_.containsKey('impact')
? json_['impact'] as core.String
: null,
observedInTheWild: json_.containsKey('observedInTheWild')
? json_['observedInTheWild'] as core.bool
: null,
references: json_.containsKey('references')
? (json_['references'] as core.List)
.map((value) => Reference.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
upstreamFixAvailable: json_.containsKey('upstreamFixAvailable')
? json_['upstreamFixAvailable'] as core.bool
: null,
zeroDay: json_.containsKey('zeroDay')
? json_['zeroDay'] as core.bool
: null,
);