/* 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 { ApiApplicationWaiverDTO } from './ApiApplicationWaiverDTO'; import { ApiApplicationWaiverDTOFromJSON, ApiApplicationWaiverDTOFromJSONTyped, ApiApplicationWaiverDTOToJSON, ApiApplicationWaiverDTOToJSONTyped, } from './ApiApplicationWaiverDTO'; import type { ApiRepositoryWaiverDTO } from './ApiRepositoryWaiverDTO'; import { ApiRepositoryWaiverDTOFromJSON, ApiRepositoryWaiverDTOFromJSONTyped, ApiRepositoryWaiverDTOToJSON, ApiRepositoryWaiverDTOToJSONTyped, } from './ApiRepositoryWaiverDTO'; /** * * @export * @interface ApiComponentWaiversDTO */ export interface ApiComponentWaiversDTO { /** * * @type {Array} * @memberof ApiComponentWaiversDTO */ applicationWaivers?: Array; /** * * @type {Array} * @memberof ApiComponentWaiversDTO */ repositoryWaivers?: Array; } /** * Check if a given object implements the ApiComponentWaiversDTO interface. */ export function instanceOfApiComponentWaiversDTO(value: object): value is ApiComponentWaiversDTO { return true; } export function ApiComponentWaiversDTOFromJSON(json: any): ApiComponentWaiversDTO { return ApiComponentWaiversDTOFromJSONTyped(json, false); } export function ApiComponentWaiversDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentWaiversDTO { if (json == null) { return json; } return { 'applicationWaivers': json['applicationWaivers'] == null ? undefined : ((json['applicationWaivers'] as Array).map(ApiApplicationWaiverDTOFromJSON)), 'repositoryWaivers': json['repositoryWaivers'] == null ? undefined : ((json['repositoryWaivers'] as Array).map(ApiRepositoryWaiverDTOFromJSON)), }; } export function ApiComponentWaiversDTOToJSON(json: any): ApiComponentWaiversDTO { return ApiComponentWaiversDTOToJSONTyped(json, false); } export function ApiComponentWaiversDTOToJSONTyped(value?: ApiComponentWaiversDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationWaivers': value['applicationWaivers'] == null ? undefined : ((value['applicationWaivers'] as Array).map(ApiApplicationWaiverDTOToJSON)), 'repositoryWaivers': value['repositoryWaivers'] == null ? undefined : ((value['repositoryWaivers'] as Array).map(ApiRepositoryWaiverDTOToJSON)), }; }