VulnerabilityOccurrence.fromJson constructor
VulnerabilityOccurrence.fromJson(
- Map json_
Implementation
VulnerabilityOccurrence.fromJson(core.Map json_)
: this(
cvssScore: json_.containsKey('cvssScore')
? (json_['cvssScore'] as core.num).toDouble()
: null,
cvssV2: json_.containsKey('cvssV2')
? CVSS.fromJson(
json_['cvssV2'] as core.Map<core.String, core.dynamic>)
: null,
cvssVersion: json_.containsKey('cvssVersion')
? json_['cvssVersion'] as core.String
: null,
cvssv3: json_.containsKey('cvssv3')
? CVSS.fromJson(
json_['cvssv3'] as core.Map<core.String, core.dynamic>)
: null,
effectiveSeverity: json_.containsKey('effectiveSeverity')
? json_['effectiveSeverity'] as core.String
: null,
extraDetails: json_.containsKey('extraDetails')
? json_['extraDetails'] as core.String
: null,
fixAvailable: json_.containsKey('fixAvailable')
? json_['fixAvailable'] as core.bool
: null,
longDescription: json_.containsKey('longDescription')
? json_['longDescription'] as core.String
: null,
packageIssue: json_.containsKey('packageIssue')
? (json_['packageIssue'] as core.List)
.map((value) => PackageIssue.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
relatedUrls: json_.containsKey('relatedUrls')
? (json_['relatedUrls'] as core.List)
.map((value) => RelatedUrl.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
shortDescription: json_.containsKey('shortDescription')
? json_['shortDescription'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
vexAssessment: json_.containsKey('vexAssessment')
? VexAssessment.fromJson(
json_['vexAssessment'] as core.Map<core.String, core.dynamic>)
: null,
);