/* 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 ApiSearchCriteriaDTOV2 */ export interface ApiSearchCriteriaDTOV2 { /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiSearchCriteriaDTOV2 */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ApiSearchCriteriaDTOV2 */ hash?: string; /** * * @type {string} * @memberof ApiSearchCriteriaDTOV2 */ packageUrl?: string; /** * * @type {string} * @memberof ApiSearchCriteriaDTOV2 */ stageId?: string; } /** * Check if a given object implements the ApiSearchCriteriaDTOV2 interface. */ export function instanceOfApiSearchCriteriaDTOV2(value: object): value is ApiSearchCriteriaDTOV2 { return true; } export function ApiSearchCriteriaDTOV2FromJSON(json: any): ApiSearchCriteriaDTOV2 { return ApiSearchCriteriaDTOV2FromJSONTyped(json, false); } export function ApiSearchCriteriaDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchCriteriaDTOV2 { if (json == null) { return json; } return { 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'hash': json['hash'] == null ? undefined : json['hash'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], 'stageId': json['stageId'] == null ? undefined : json['stageId'], }; } export function ApiSearchCriteriaDTOV2ToJSON(json: any): ApiSearchCriteriaDTOV2 { return ApiSearchCriteriaDTOV2ToJSONTyped(json, false); } export function ApiSearchCriteriaDTOV2ToJSONTyped(value?: ApiSearchCriteriaDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'hash': value['hash'], 'packageUrl': value['packageUrl'], 'stageId': value['stageId'], }; }