/* 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'; /** * * @export * @interface ApiComponentOrPurlIdentifierDTOV2 */ export interface ApiComponentOrPurlIdentifierDTOV2 { /** * * @type {{ [key: string]: string; }} * @memberof ApiComponentOrPurlIdentifierDTOV2 */ coordinates?: { [key: string]: string; }; /** * * @type {string} * @memberof ApiComponentOrPurlIdentifierDTOV2 */ format?: string; /** * * @type {string} * @memberof ApiComponentOrPurlIdentifierDTOV2 */ packageUrl?: string; } /** * Check if a given object implements the ApiComponentOrPurlIdentifierDTOV2 interface. */ export function instanceOfApiComponentOrPurlIdentifierDTOV2(value: object): value is ApiComponentOrPurlIdentifierDTOV2 { return true; } export function ApiComponentOrPurlIdentifierDTOV2FromJSON(json: any): ApiComponentOrPurlIdentifierDTOV2 { return ApiComponentOrPurlIdentifierDTOV2FromJSONTyped(json, false); } export function ApiComponentOrPurlIdentifierDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentOrPurlIdentifierDTOV2 { if (json == null) { return json; } return { 'coordinates': json['coordinates'] == null ? undefined : json['coordinates'], 'format': json['format'] == null ? undefined : json['format'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], }; } export function ApiComponentOrPurlIdentifierDTOV2ToJSON(json: any): ApiComponentOrPurlIdentifierDTOV2 { return ApiComponentOrPurlIdentifierDTOV2ToJSONTyped(json, false); } export function ApiComponentOrPurlIdentifierDTOV2ToJSONTyped(value?: ApiComponentOrPurlIdentifierDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'coordinates': value['coordinates'], 'format': value['format'], 'packageUrl': value['packageUrl'], }; }