/* 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 { ApiSearchCriteriaDTOV2 } from './ApiSearchCriteriaDTOV2'; import { ApiSearchCriteriaDTOV2FromJSON, ApiSearchCriteriaDTOV2FromJSONTyped, ApiSearchCriteriaDTOV2ToJSON, ApiSearchCriteriaDTOV2ToJSONTyped, } from './ApiSearchCriteriaDTOV2'; import type { ApiSearchResultDTOV2 } from './ApiSearchResultDTOV2'; import { ApiSearchResultDTOV2FromJSON, ApiSearchResultDTOV2FromJSONTyped, ApiSearchResultDTOV2ToJSON, ApiSearchResultDTOV2ToJSONTyped, } from './ApiSearchResultDTOV2'; /** * * @export * @interface ApiSearchResultsDTOV2 */ export interface ApiSearchResultsDTOV2 { /** * * @type {ApiSearchCriteriaDTOV2} * @memberof ApiSearchResultsDTOV2 */ criteria?: ApiSearchCriteriaDTOV2; /** * * @type {Array} * @memberof ApiSearchResultsDTOV2 */ results?: Array; } /** * Check if a given object implements the ApiSearchResultsDTOV2 interface. */ export function instanceOfApiSearchResultsDTOV2(value: object): value is ApiSearchResultsDTOV2 { return true; } export function ApiSearchResultsDTOV2FromJSON(json: any): ApiSearchResultsDTOV2 { return ApiSearchResultsDTOV2FromJSONTyped(json, false); } export function ApiSearchResultsDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResultsDTOV2 { if (json == null) { return json; } return { 'criteria': json['criteria'] == null ? undefined : ApiSearchCriteriaDTOV2FromJSON(json['criteria']), 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(ApiSearchResultDTOV2FromJSON)), }; } export function ApiSearchResultsDTOV2ToJSON(json: any): ApiSearchResultsDTOV2 { return ApiSearchResultsDTOV2ToJSONTyped(json, false); } export function ApiSearchResultsDTOV2ToJSONTyped(value?: ApiSearchResultsDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'criteria': ApiSearchCriteriaDTOV2ToJSON(value['criteria']), 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(ApiSearchResultDTOV2ToJSON)), }; }