/* 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 VulnerabilitySource */ export interface VulnerabilitySource { /** * * @type {string} * @memberof VulnerabilitySource */ longName?: string; /** * * @type {string} * @memberof VulnerabilitySource */ shortName?: string; } /** * Check if a given object implements the VulnerabilitySource interface. */ export function instanceOfVulnerabilitySource(value: object): value is VulnerabilitySource { return true; } export function VulnerabilitySourceFromJSON(json: any): VulnerabilitySource { return VulnerabilitySourceFromJSONTyped(json, false); } export function VulnerabilitySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VulnerabilitySource { if (json == null) { return json; } return { 'longName': json['longName'] == null ? undefined : json['longName'], 'shortName': json['shortName'] == null ? undefined : json['shortName'], }; } export function VulnerabilitySourceToJSON(json: any): VulnerabilitySource { return VulnerabilitySourceToJSONTyped(json, false); } export function VulnerabilitySourceToJSONTyped(value?: VulnerabilitySource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'longName': value['longName'], 'shortName': value['shortName'], }; }