toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cpeUri != null) 'cpeUri': cpeUri!,
      if (description != null) 'description': description!,
      if (fixedLocation != null) 'fixedLocation': fixedLocation!,
      if (isObsolete != null) 'isObsolete': isObsolete!,
      if (maxAffectedVersion != null)
        'maxAffectedVersion': maxAffectedVersion!,
      if (minAffectedVersion != null)
        'minAffectedVersion': minAffectedVersion!,
      if (package != null) 'package': package!,
      if (packageType != null) 'packageType': packageType!,
      if (severityName != null) 'severityName': severityName!,
      if (source != null) 'source': source!,
      if (sourceUpdateTime != null) 'sourceUpdateTime': sourceUpdateTime!,
      if (vendor != null) 'vendor': vendor!,
    };