toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attestation != null) 'attestation': attestation!,
      if (build != null) 'build': build!,
      if (compliance != null) 'compliance': compliance!,
      if (createTime != null) 'createTime': createTime!,
      if (deployment != null) 'deployment': deployment!,
      if (discovery != null) 'discovery': discovery!,
      if (dsseAttestation != null) 'dsseAttestation': dsseAttestation!,
      if (expirationTime != null) 'expirationTime': expirationTime!,
      if (image != null) 'image': image!,
      if (kind != null) 'kind': kind!,
      if (longDescription != null) 'longDescription': longDescription!,
      if (name != null) 'name': name!,
      if (package != null) 'package': package!,
      if (relatedNoteNames != null) 'relatedNoteNames': relatedNoteNames!,
      if (relatedUrl != null) 'relatedUrl': relatedUrl!,
      if (sbomReference != null) 'sbomReference': sbomReference!,
      if (shortDescription != null) 'shortDescription': shortDescription!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (upgrade != null) 'upgrade': upgrade!,
      if (vulnerability != null) 'vulnerability': vulnerability!,
      if (vulnerabilityAssessment != null)
        'vulnerabilityAssessment': vulnerabilityAssessment!,
    };