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