VulnerabilityReport.fromJson constructor
VulnerabilityReport.fromJson(
- Map _json
Implementation
VulnerabilityReport.fromJson(core.Map _json)
: this(
name: _json.containsKey('name') ? _json['name'] as core.String : null,
updateTime: _json.containsKey('updateTime')
? _json['updateTime'] as core.String
: null,
vulnerabilities: _json.containsKey('vulnerabilities')
? (_json['vulnerabilities'] as core.List)
.map<VulnerabilityReportVulnerability>((value) =>
VulnerabilityReportVulnerability.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);