VulnerabilityReportVulnerabilityDetails.fromJson constructor
VulnerabilityReportVulnerabilityDetails.fromJson(
- Map json_
Implementation
VulnerabilityReportVulnerabilityDetails.fromJson(core.Map json_)
: this(
cve: json_.containsKey('cve') ? json_['cve'] as core.String : null,
cvssV2Score: json_.containsKey('cvssV2Score')
? (json_['cvssV2Score'] as core.num).toDouble()
: null,
cvssV3: json_.containsKey('cvssV3')
? CVSSv3.fromJson(
json_['cvssV3'] as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
references: json_.containsKey('references')
? (json_['references'] as core.List)
.map((value) =>
VulnerabilityReportVulnerabilityDetailsReference.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
);