toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attestationAuthority != null)
        'attestationAuthority': attestationAuthority!.toJson(),
      if (baseImage != null) 'baseImage': baseImage!.toJson(),
      if (build != null) 'build': build!.toJson(),
      if (createTime != null) 'createTime': createTime!,
      if (deployable != null) 'deployable': deployable!.toJson(),
      if (discovery != null) 'discovery': discovery!.toJson(),
      if (expirationTime != null) 'expirationTime': expirationTime!,
      if (intoto != null) 'intoto': intoto!.toJson(),
      if (kind != null) 'kind': kind!,
      if (longDescription != null) 'longDescription': longDescription!,
      if (name != null) 'name': name!,
      if (package != null) 'package': package!.toJson(),
      if (relatedNoteNames != null) 'relatedNoteNames': relatedNoteNames!,
      if (relatedUrl != null)
        'relatedUrl': relatedUrl!.map((value) => value.toJson()).toList(),
      if (sbom != null) 'sbom': sbom!.toJson(),
      if (shortDescription != null) 'shortDescription': shortDescription!,
      if (spdxFile != null) 'spdxFile': spdxFile!.toJson(),
      if (spdxPackage != null) 'spdxPackage': spdxPackage!.toJson(),
      if (spdxRelationship != null)
        'spdxRelationship': spdxRelationship!.toJson(),
      if (updateTime != null) 'updateTime': updateTime!,
      if (vulnerability != null) 'vulnerability': vulnerability!.toJson(),
    };