/* 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 ApiLicenseThreatDTOV2 */ export interface ApiLicenseThreatDTOV2 { /** * * @type {string} * @memberof ApiLicenseThreatDTOV2 */ licenseThreatGroupCategory?: string; /** * * @type {number} * @memberof ApiLicenseThreatDTOV2 */ licenseThreatGroupLevel?: number; /** * * @type {string} * @memberof ApiLicenseThreatDTOV2 */ licenseThreatGroupName?: string; } /** * Check if a given object implements the ApiLicenseThreatDTOV2 interface. */ export function instanceOfApiLicenseThreatDTOV2(value: object): value is ApiLicenseThreatDTOV2 { return true; } export function ApiLicenseThreatDTOV2FromJSON(json: any): ApiLicenseThreatDTOV2 { return ApiLicenseThreatDTOV2FromJSONTyped(json, false); } export function ApiLicenseThreatDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseThreatDTOV2 { if (json == null) { return json; } return { 'licenseThreatGroupCategory': json['licenseThreatGroupCategory'] == null ? undefined : json['licenseThreatGroupCategory'], 'licenseThreatGroupLevel': json['licenseThreatGroupLevel'] == null ? undefined : json['licenseThreatGroupLevel'], 'licenseThreatGroupName': json['licenseThreatGroupName'] == null ? undefined : json['licenseThreatGroupName'], }; } export function ApiLicenseThreatDTOV2ToJSON(json: any): ApiLicenseThreatDTOV2 { return ApiLicenseThreatDTOV2ToJSONTyped(json, false); } export function ApiLicenseThreatDTOV2ToJSONTyped(value?: ApiLicenseThreatDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'licenseThreatGroupCategory': value['licenseThreatGroupCategory'], 'licenseThreatGroupLevel': value['licenseThreatGroupLevel'], 'licenseThreatGroupName': value['licenseThreatGroupName'], }; }