toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cvssScore != null) 'cvssScore': cvssScore!,
      if (cvssV3 != null) 'cvssV3': cvssV3!.toJson(),
      if (details != null)
        'details': details!.map((value) => value.toJson()).toList(),
      if (severity != null) 'severity': severity!,
      if (sourceUpdateTime != null) 'sourceUpdateTime': sourceUpdateTime!,
      if (windowsDetails != null)
        'windowsDetails':
            windowsDetails!.map((value) => value.toJson()).toList(),
    };