/* 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 { ApiPolicyWaiverDTO } from './ApiPolicyWaiverDTO'; import { ApiPolicyWaiverDTOFromJSON, ApiPolicyWaiverDTOFromJSONTyped, ApiPolicyWaiverDTOToJSON, ApiPolicyWaiverDTOToJSONTyped, } from './ApiPolicyWaiverDTO'; /** * * @export * @interface ApiComponentPolicyWaiversDTO */ export interface ApiComponentPolicyWaiversDTO { /** * * @type {Array} * @memberof ApiComponentPolicyWaiversDTO */ componentPolicyWaivers?: Array; } /** * Check if a given object implements the ApiComponentPolicyWaiversDTO interface. */ export function instanceOfApiComponentPolicyWaiversDTO(value: object): value is ApiComponentPolicyWaiversDTO { return true; } export function ApiComponentPolicyWaiversDTOFromJSON(json: any): ApiComponentPolicyWaiversDTO { return ApiComponentPolicyWaiversDTOFromJSONTyped(json, false); } export function ApiComponentPolicyWaiversDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentPolicyWaiversDTO { if (json == null) { return json; } return { 'componentPolicyWaivers': json['componentPolicyWaivers'] == null ? undefined : ((json['componentPolicyWaivers'] as Array).map(ApiPolicyWaiverDTOFromJSON)), }; } export function ApiComponentPolicyWaiversDTOToJSON(json: any): ApiComponentPolicyWaiversDTO { return ApiComponentPolicyWaiversDTOToJSONTyped(json, false); } export function ApiComponentPolicyWaiversDTOToJSONTyped(value?: ApiComponentPolicyWaiversDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentPolicyWaivers': value['componentPolicyWaivers'] == null ? undefined : ((value['componentPolicyWaivers'] as Array).map(ApiPolicyWaiverDTOToJSON)), }; }