/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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'; /** * Request body containing the component PURL * @export * @interface LatestVersionRequest */ export interface LatestVersionRequest { /** * * @type {string} * @memberof LatestVersionRequest */ purl?: string; } /** * Check if a given object implements the LatestVersionRequest interface. */ export function instanceOfLatestVersionRequest(value: object): value is LatestVersionRequest { return true; } export function LatestVersionRequestFromJSON(json: any): LatestVersionRequest { return LatestVersionRequestFromJSONTyped(json, false); } export function LatestVersionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LatestVersionRequest { if (json == null) { return json; } return { 'purl': json['purl'] == null ? undefined : json['purl'], }; } export function LatestVersionRequestToJSON(json: any): LatestVersionRequest { return LatestVersionRequestToJSONTyped(json, false); } export function LatestVersionRequestToJSONTyped(value?: LatestVersionRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'purl': value['purl'], }; }