/* 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'; /** * * @export * @interface PathSegment */ export interface PathSegment { /** * * @type {string} * @memberof PathSegment */ type: string; } /** * Check if a given object implements the PathSegment interface. */ export function instanceOfPathSegment(value: object): value is PathSegment { if (!('type' in value) || value['type'] === undefined) return false; return true; } export function PathSegmentFromJSON(json: any): PathSegment { return PathSegmentFromJSONTyped(json, false); } export function PathSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSegment { if (json == null) { return json; } if (!ignoreDiscriminator) { } return { 'type': json['type'], }; } export function PathSegmentToJSON(json: any): PathSegment { return PathSegmentToJSONTyped(json, false); } export function PathSegmentToJSONTyped(value?: PathSegment | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (!ignoreDiscriminator) { switch (value['type']) { default: return value; } } return { 'type': value['type'], }; }