toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final cvss = this.cvss;
final referenceUrls = this.referenceUrls;
final relatedVulnerabilities = this.relatedVulnerabilities;
final vendor = this.vendor;
final vulnerablePackages = this.vulnerablePackages;
return {
'Id': id,
if (cvss != null) 'Cvss': cvss,
if (referenceUrls != null) 'ReferenceUrls': referenceUrls,
if (relatedVulnerabilities != null)
'RelatedVulnerabilities': relatedVulnerabilities,
if (vendor != null) 'Vendor': vendor,
if (vulnerablePackages != null) 'VulnerablePackages': vulnerablePackages,
};
}