/* 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 { CweIdDTO } from './CweIdDTO'; import { CweIdDTOFromJSON, CweIdDTOFromJSONTyped, CweIdDTOToJSON, CweIdDTOToJSONTyped, } from './CweIdDTO'; /** * * @export * @interface SecurityVulnerabilityWeaknessDTO */ export interface SecurityVulnerabilityWeaknessDTO { /** * * @type {Array} * @memberof SecurityVulnerabilityWeaknessDTO */ cweIds?: Array; /** * * @type {string} * @memberof SecurityVulnerabilityWeaknessDTO */ cweSource?: string; } /** * Check if a given object implements the SecurityVulnerabilityWeaknessDTO interface. */ export function instanceOfSecurityVulnerabilityWeaknessDTO(value: object): value is SecurityVulnerabilityWeaknessDTO { return true; } export function SecurityVulnerabilityWeaknessDTOFromJSON(json: any): SecurityVulnerabilityWeaknessDTO { return SecurityVulnerabilityWeaknessDTOFromJSONTyped(json, false); } export function SecurityVulnerabilityWeaknessDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityVulnerabilityWeaknessDTO { if (json == null) { return json; } return { 'cweIds': json['cweIds'] == null ? undefined : ((json['cweIds'] as Array).map(CweIdDTOFromJSON)), 'cweSource': json['cweSource'] == null ? undefined : json['cweSource'], }; } export function SecurityVulnerabilityWeaknessDTOToJSON(json: any): SecurityVulnerabilityWeaknessDTO { return SecurityVulnerabilityWeaknessDTOToJSONTyped(json, false); } export function SecurityVulnerabilityWeaknessDTOToJSONTyped(value?: SecurityVulnerabilityWeaknessDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'cweIds': value['cweIds'] == null ? undefined : ((value['cweIds'] as Array).map(CweIdDTOToJSON)), 'cweSource': value['cweSource'], }; }