/* 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 ApiPolicyWaiversApplicableToViolationDTO */ export interface ApiPolicyWaiversApplicableToViolationDTO { /** * * @type {Array} * @memberof ApiPolicyWaiversApplicableToViolationDTO */ activeWaivers?: Array; /** * * @type {Array} * @memberof ApiPolicyWaiversApplicableToViolationDTO */ expiredWaivers?: Array; } /** * Check if a given object implements the ApiPolicyWaiversApplicableToViolationDTO interface. */ export function instanceOfApiPolicyWaiversApplicableToViolationDTO(value: object): value is ApiPolicyWaiversApplicableToViolationDTO { return true; } export function ApiPolicyWaiversApplicableToViolationDTOFromJSON(json: any): ApiPolicyWaiversApplicableToViolationDTO { return ApiPolicyWaiversApplicableToViolationDTOFromJSONTyped(json, false); } export function ApiPolicyWaiversApplicableToViolationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPolicyWaiversApplicableToViolationDTO { if (json == null) { return json; } return { 'activeWaivers': json['activeWaivers'] == null ? undefined : ((json['activeWaivers'] as Array).map(ApiPolicyWaiverDTOFromJSON)), 'expiredWaivers': json['expiredWaivers'] == null ? undefined : ((json['expiredWaivers'] as Array).map(ApiPolicyWaiverDTOFromJSON)), }; } export function ApiPolicyWaiversApplicableToViolationDTOToJSON(json: any): ApiPolicyWaiversApplicableToViolationDTO { return ApiPolicyWaiversApplicableToViolationDTOToJSONTyped(json, false); } export function ApiPolicyWaiversApplicableToViolationDTOToJSONTyped(value?: ApiPolicyWaiversApplicableToViolationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'activeWaivers': value['activeWaivers'] == null ? undefined : ((value['activeWaivers'] as Array).map(ApiPolicyWaiverDTOToJSON)), 'expiredWaivers': value['expiredWaivers'] == null ? undefined : ((value['expiredWaivers'] as Array).map(ApiPolicyWaiverDTOToJSON)), }; }