/* 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 CweId */ export interface CweId { /** * * @type {string} * @memberof CweId */ id?: string; /** * * @type {string} * @memberof CweId */ uri?: string; } /** * Check if a given object implements the CweId interface. */ export function instanceOfCweId(value: object): value is CweId { return true; } export function CweIdFromJSON(json: any): CweId { return CweIdFromJSONTyped(json, false); } export function CweIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): CweId { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'uri': json['uri'] == null ? undefined : json['uri'], }; } export function CweIdToJSON(json: any): CweId { return CweIdToJSONTyped(json, false); } export function CweIdToJSONTyped(value?: CweId | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'uri': value['uri'], }; }