/* 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 { ApiComponentDetailsDTOV2 } from './ApiComponentDetailsDTOV2'; import { ApiComponentDetailsDTOV2FromJSON, ApiComponentDetailsDTOV2FromJSONTyped, ApiComponentDetailsDTOV2ToJSON, ApiComponentDetailsDTOV2ToJSONTyped, } from './ApiComponentDetailsDTOV2'; /** * * @export * @interface ApiComponentDetailsResultDTOV2 */ export interface ApiComponentDetailsResultDTOV2 { /** * * @type {Array} * @memberof ApiComponentDetailsResultDTOV2 */ componentDetails?: Array; } /** * Check if a given object implements the ApiComponentDetailsResultDTOV2 interface. */ export function instanceOfApiComponentDetailsResultDTOV2(value: object): value is ApiComponentDetailsResultDTOV2 { return true; } export function ApiComponentDetailsResultDTOV2FromJSON(json: any): ApiComponentDetailsResultDTOV2 { return ApiComponentDetailsResultDTOV2FromJSONTyped(json, false); } export function ApiComponentDetailsResultDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentDetailsResultDTOV2 { if (json == null) { return json; } return { 'componentDetails': json['componentDetails'] == null ? undefined : ((json['componentDetails'] as Array).map(ApiComponentDetailsDTOV2FromJSON)), }; } export function ApiComponentDetailsResultDTOV2ToJSON(json: any): ApiComponentDetailsResultDTOV2 { return ApiComponentDetailsResultDTOV2ToJSONTyped(json, false); } export function ApiComponentDetailsResultDTOV2ToJSONTyped(value?: ApiComponentDetailsResultDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentDetails': value['componentDetails'] == null ? undefined : ((value['componentDetails'] as Array).map(ApiComponentDetailsDTOV2ToJSON)), }; }