/* 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'; import type { CweId } from './CweId'; import { CweIdFromJSON, CweIdFromJSONTyped, CweIdToJSON, CweIdToJSONTyped, } from './CweId'; /** * * @export * @interface SecurityVulnerabilityWeakness */ export interface SecurityVulnerabilityWeakness { /** * * @type {Array} * @memberof SecurityVulnerabilityWeakness */ cweIds?: Array; /** * * @type {string} * @memberof SecurityVulnerabilityWeakness */ cweSource?: string; } /** * Check if a given object implements the SecurityVulnerabilityWeakness interface. */ export function instanceOfSecurityVulnerabilityWeakness(value: object): value is SecurityVulnerabilityWeakness { return true; } export function SecurityVulnerabilityWeaknessFromJSON(json: any): SecurityVulnerabilityWeakness { return SecurityVulnerabilityWeaknessFromJSONTyped(json, false); } export function SecurityVulnerabilityWeaknessFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityVulnerabilityWeakness { if (json == null) { return json; } return { 'cweIds': json['cweIds'] == null ? undefined : ((json['cweIds'] as Array).map(CweIdFromJSON)), 'cweSource': json['cweSource'] == null ? undefined : json['cweSource'], }; } export function SecurityVulnerabilityWeaknessToJSON(json: any): SecurityVulnerabilityWeakness { return SecurityVulnerabilityWeaknessToJSONTyped(json, false); } export function SecurityVulnerabilityWeaknessToJSONTyped(value?: SecurityVulnerabilityWeakness | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'cweIds': value['cweIds'] == null ? undefined : ((value['cweIds'] as Array).map(CweIdToJSON)), 'cweSource': value['cweSource'], }; }