/* 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 { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; /** * * @export * @interface ApiHashComponentIdentifierDTO */ export interface ApiHashComponentIdentifierDTO { /** * * @type {string} * @memberof ApiHashComponentIdentifierDTO */ claimerId?: string; /** * * @type {string} * @memberof ApiHashComponentIdentifierDTO */ claimerName?: string; /** * * @type {string} * @memberof ApiHashComponentIdentifierDTO */ comment?: string; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiHashComponentIdentifierDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {Date} * @memberof ApiHashComponentIdentifierDTO */ createTime?: Date; /** * * @type {string} * @memberof ApiHashComponentIdentifierDTO */ hash?: string; /** * * @type {string} * @memberof ApiHashComponentIdentifierDTO */ packageUrl?: string; } /** * Check if a given object implements the ApiHashComponentIdentifierDTO interface. */ export function instanceOfApiHashComponentIdentifierDTO(value: object): value is ApiHashComponentIdentifierDTO { return true; } export function ApiHashComponentIdentifierDTOFromJSON(json: any): ApiHashComponentIdentifierDTO { return ApiHashComponentIdentifierDTOFromJSONTyped(json, false); } export function ApiHashComponentIdentifierDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiHashComponentIdentifierDTO { if (json == null) { return json; } return { 'claimerId': json['claimerId'] == null ? undefined : json['claimerId'], 'claimerName': json['claimerName'] == null ? undefined : json['claimerName'], 'comment': json['comment'] == null ? undefined : json['comment'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'hash': json['hash'] == null ? undefined : json['hash'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], }; } export function ApiHashComponentIdentifierDTOToJSON(json: any): ApiHashComponentIdentifierDTO { return ApiHashComponentIdentifierDTOToJSONTyped(json, false); } export function ApiHashComponentIdentifierDTOToJSONTyped(value?: ApiHashComponentIdentifierDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'claimerId': value['claimerId'], 'claimerName': value['claimerName'], 'comment': value['comment'], 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'hash': value['hash'], 'packageUrl': value['packageUrl'], }; }