toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cve != null) 'cve': cve!,
      if (cvssV2Score != null) 'cvssV2Score': cvssV2Score!,
      if (cvssV3 != null) 'cvssV3': cvssV3!.toJson(),
      if (description != null) 'description': description!,
      if (references != null)
        'references': references!.map((value) => value.toJson()).toList(),
      if (severity != null) 'severity': severity!,
    };