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!.map((value) => value.toJson()).toList(),
      if (relatedUrls != null)
        'relatedUrls': relatedUrls!.map((value) => value.toJson()).toList(),
      if (severity != null) 'severity': severity!,
      if (shortDescription != null) 'shortDescription': shortDescription!,
      if (type != null) 'type': type!,
    };