/* tslint:disable */ /* eslint-disable */ /** * Keycloak Admin REST API * This is a REST API reference for the Keycloak Admin * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { ClientPolicyRepresentation, ClientPolicyRepresentationFromJSON, ClientPolicyRepresentationFromJSONTyped, ClientPolicyRepresentationToJSON, } from './'; /** * * @export * @interface ClientPoliciesRepresentation */ export interface ClientPoliciesRepresentation { /** * * @type {Array} * @memberof ClientPoliciesRepresentation */ policies?: Array; } export function ClientPoliciesRepresentationFromJSON(json: any): ClientPoliciesRepresentation { return ClientPoliciesRepresentationFromJSONTyped(json, false); } export function ClientPoliciesRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientPoliciesRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array).map(ClientPolicyRepresentationFromJSON)), }; } export function ClientPoliciesRepresentationToJSON(value?: ClientPoliciesRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'policies': value.policies === undefined ? undefined : ((value.policies as Array).map(ClientPolicyRepresentationToJSON)), }; }