/* 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 { ApiRepositoryPathVersions } from './ApiRepositoryPathVersions'; import { ApiRepositoryPathVersionsFromJSON, ApiRepositoryPathVersionsFromJSONTyped, ApiRepositoryPathVersionsToJSON, ApiRepositoryPathVersionsToJSONTyped, } from './ApiRepositoryPathVersions'; /** * * @export * @interface ApiRepositoryPathResponseDTO */ export interface ApiRepositoryPathResponseDTO { /** * * @type {Array} * @memberof ApiRepositoryPathResponseDTO */ pathVersions?: Array; } /** * Check if a given object implements the ApiRepositoryPathResponseDTO interface. */ export function instanceOfApiRepositoryPathResponseDTO(value: object): value is ApiRepositoryPathResponseDTO { return true; } export function ApiRepositoryPathResponseDTOFromJSON(json: any): ApiRepositoryPathResponseDTO { return ApiRepositoryPathResponseDTOFromJSONTyped(json, false); } export function ApiRepositoryPathResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRepositoryPathResponseDTO { if (json == null) { return json; } return { 'pathVersions': json['pathVersions'] == null ? undefined : ((json['pathVersions'] as Array).map(ApiRepositoryPathVersionsFromJSON)), }; } export function ApiRepositoryPathResponseDTOToJSON(json: any): ApiRepositoryPathResponseDTO { return ApiRepositoryPathResponseDTOToJSONTyped(json, false); } export function ApiRepositoryPathResponseDTOToJSONTyped(value?: ApiRepositoryPathResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'pathVersions': value['pathVersions'] == null ? undefined : ((value['pathVersions'] as Array).map(ApiRepositoryPathVersionsToJSON)), }; }