toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cvssScore != null) 'cvssScore': cvssScore!,
      if (effectiveSeverity != null) 'effectiveSeverity': effectiveSeverity!,
      if (fixAvailable != null) 'fixAvailable': fixAvailable!,
      if (longDescription != null) 'longDescription': longDescription!,
      if (packageIssue != null) 'packageIssue': packageIssue!,
      if (relatedUrls != null) 'relatedUrls': relatedUrls!,
      if (severity != null) 'severity': severity!,
      if (shortDescription != null) 'shortDescription': shortDescription!,
      if (type != null) 'type': type!,
    };