Assessment.fromJson constructor
Assessment.fromJson(
- Map json_
Implementation
Assessment.fromJson(core.Map json_)
: this(
cve: json_.containsKey('cve') ? json_['cve'] as core.String : null,
impacts: json_.containsKey('impacts')
? (json_['impacts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
justification: json_.containsKey('justification')
? Justification.fromJson(
json_['justification'] as core.Map<core.String, core.dynamic>)
: null,
longDescription: json_.containsKey('longDescription')
? json_['longDescription'] as core.String
: null,
relatedUris: json_.containsKey('relatedUris')
? (json_['relatedUris'] as core.List)
.map((value) => RelatedUrl.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
remediations: json_.containsKey('remediations')
? (json_['remediations'] as core.List)
.map((value) => Remediation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shortDescription: json_.containsKey('shortDescription')
? json_['shortDescription'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
vulnerabilityId: json_.containsKey('vulnerabilityId')
? json_['vulnerabilityId'] as core.String
: null,
);