/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { ApiLicenseLegalDataDTO } from './ApiLicenseLegalDataDTO'; import { ApiLicenseLegalDataDTOFromJSON, ApiLicenseLegalDataDTOFromJSONTyped, ApiLicenseLegalDataDTOToJSON, ApiLicenseLegalDataDTOToJSONTyped, } from './ApiLicenseLegalDataDTO'; import type { ApiLicenseLegalStageScanDTO } from './ApiLicenseLegalStageScanDTO'; import { ApiLicenseLegalStageScanDTOFromJSON, ApiLicenseLegalStageScanDTOFromJSONTyped, ApiLicenseLegalStageScanDTOToJSON, ApiLicenseLegalStageScanDTOToJSONTyped, } from './ApiLicenseLegalStageScanDTO'; import type { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; /** * * @export * @interface ApiLicenseLegalComponentDTO */ export interface ApiLicenseLegalComponentDTO { /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiLicenseLegalComponentDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ApiLicenseLegalComponentDTO */ displayName?: string; /** * * @type {string} * @memberof ApiLicenseLegalComponentDTO */ hash?: string; /** * * @type {ApiLicenseLegalDataDTO} * @memberof ApiLicenseLegalComponentDTO */ licenseLegalData?: ApiLicenseLegalDataDTO; /** * * @type {string} * @memberof ApiLicenseLegalComponentDTO */ packageUrl?: string; /** * * @type {Array} * @memberof ApiLicenseLegalComponentDTO */ stageScans?: Array; } /** * Check if a given object implements the ApiLicenseLegalComponentDTO interface. */ export function instanceOfApiLicenseLegalComponentDTO(value: object): value is ApiLicenseLegalComponentDTO { return true; } export function ApiLicenseLegalComponentDTOFromJSON(json: any): ApiLicenseLegalComponentDTO { return ApiLicenseLegalComponentDTOFromJSONTyped(json, false); } export function ApiLicenseLegalComponentDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseLegalComponentDTO { if (json == null) { return json; } return { 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'hash': json['hash'] == null ? undefined : json['hash'], 'licenseLegalData': json['licenseLegalData'] == null ? undefined : ApiLicenseLegalDataDTOFromJSON(json['licenseLegalData']), 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], 'stageScans': json['stageScans'] == null ? undefined : ((json['stageScans'] as Array).map(ApiLicenseLegalStageScanDTOFromJSON)), }; } export function ApiLicenseLegalComponentDTOToJSON(json: any): ApiLicenseLegalComponentDTO { return ApiLicenseLegalComponentDTOToJSONTyped(json, false); } export function ApiLicenseLegalComponentDTOToJSONTyped(value?: ApiLicenseLegalComponentDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'displayName': value['displayName'], 'hash': value['hash'], 'licenseLegalData': ApiLicenseLegalDataDTOToJSON(value['licenseLegalData']), 'packageUrl': value['packageUrl'], 'stageScans': value['stageScans'] == null ? undefined : ((value['stageScans'] as Array).map(ApiLicenseLegalStageScanDTOToJSON)), }; }