/* 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 { ApiPolicyDTO } from './ApiPolicyDTO'; import { ApiPolicyDTOFromJSON, ApiPolicyDTOFromJSONTyped, ApiPolicyDTOToJSON, ApiPolicyDTOToJSONTyped, } from './ApiPolicyDTO'; /** * * @export * @interface ApiPolicyListDTO */ export interface ApiPolicyListDTO { /** * * @type {Array} * @memberof ApiPolicyListDTO */ policies?: Array; } /** * Check if a given object implements the ApiPolicyListDTO interface. */ export function instanceOfApiPolicyListDTO(value: object): value is ApiPolicyListDTO { return true; } export function ApiPolicyListDTOFromJSON(json: any): ApiPolicyListDTO { return ApiPolicyListDTOFromJSONTyped(json, false); } export function ApiPolicyListDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPolicyListDTO { if (json == null) { return json; } return { 'policies': json['policies'] == null ? undefined : ((json['policies'] as Array).map(ApiPolicyDTOFromJSON)), }; } export function ApiPolicyListDTOToJSON(json: any): ApiPolicyListDTO { return ApiPolicyListDTOToJSONTyped(json, false); } export function ApiPolicyListDTOToJSONTyped(value?: ApiPolicyListDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'policies': value['policies'] == null ? undefined : ((value['policies'] as Array).map(ApiPolicyDTOToJSON)), }; }