/* 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 { PathSegment } from './PathSegment'; import { PathSegmentFromJSON, PathSegmentFromJSONTyped, PathSegmentToJSON, PathSegmentToJSONTyped, } from './PathSegment'; /** * * @export * @interface EvidencePath */ export interface EvidencePath { /** * * @type {Array} * @memberof EvidencePath */ segments?: Array; } /** * Check if a given object implements the EvidencePath interface. */ export function instanceOfEvidencePath(value: object): value is EvidencePath { return true; } export function EvidencePathFromJSON(json: any): EvidencePath { return EvidencePathFromJSONTyped(json, false); } export function EvidencePathFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvidencePath { if (json == null) { return json; } return { 'segments': json['segments'] == null ? undefined : ((json['segments'] as Array).map(PathSegmentFromJSON)), }; } export function EvidencePathToJSON(json: any): EvidencePath { return EvidencePathToJSONTyped(json, false); } export function EvidencePathToJSONTyped(value?: EvidencePath | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'segments': value['segments'] == null ? undefined : ((value['segments'] as Array).map(PathSegmentToJSON)), }; }