/* 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'; /** * * @export * @interface Reference */ export interface Reference { /** * * @type {string} * @memberof Reference */ link?: string; /** * * @type {string} * @memberof Reference */ type?: string; } /** * Check if a given object implements the Reference interface. */ export function instanceOfReference(value: object): value is Reference { return true; } export function ReferenceFromJSON(json: any): Reference { return ReferenceFromJSONTyped(json, false); } export function ReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reference { if (json == null) { return json; } return { 'link': json['link'] == null ? undefined : json['link'], 'type': json['type'] == null ? undefined : json['type'], }; } export function ReferenceToJSON(json: any): Reference { return ReferenceToJSONTyped(json, false); } export function ReferenceToJSONTyped(value?: Reference | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'link': value['link'], 'type': value['type'], }; }