toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attestationAuthority != null)
        'attestationAuthority': attestationAuthority!,
      if (baseImage != null) 'baseImage': baseImage!,
      if (build != null) 'build': build!,
      if (createTime != null) 'createTime': createTime!,
      if (deployable != null) 'deployable': deployable!,
      if (discovery != null) 'discovery': discovery!,
      if (expirationTime != null) 'expirationTime': expirationTime!,
      if (intoto != null) 'intoto': intoto!,
      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 (sbom != null) 'sbom': sbom!,
      if (shortDescription != null) 'shortDescription': shortDescription!,
      if (spdxFile != null) 'spdxFile': spdxFile!,
      if (spdxPackage != null) 'spdxPackage': spdxPackage!,
      if (spdxRelationship != null) 'spdxRelationship': spdxRelationship!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (vulnerability != null) 'vulnerability': vulnerability!,
    };