/* 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 { ClientProfileRepresentation, ClientProfileRepresentationFromJSON, ClientProfileRepresentationFromJSONTyped, ClientProfileRepresentationToJSON, } from './'; /** * * @export * @interface ClientProfilesRepresentation */ export interface ClientProfilesRepresentation { /** * * @type {Array} * @memberof ClientProfilesRepresentation */ globalProfiles?: Array; /** * * @type {Array} * @memberof ClientProfilesRepresentation */ profiles?: Array; } export function ClientProfilesRepresentationFromJSON(json: any): ClientProfilesRepresentation { return ClientProfilesRepresentationFromJSONTyped(json, false); } export function ClientProfilesRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientProfilesRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'globalProfiles': !exists(json, 'globalProfiles') ? undefined : ((json['globalProfiles'] as Array).map(ClientProfileRepresentationFromJSON)), 'profiles': !exists(json, 'profiles') ? undefined : ((json['profiles'] as Array).map(ClientProfileRepresentationFromJSON)), }; } export function ClientProfilesRepresentationToJSON(value?: ClientProfilesRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'globalProfiles': value.globalProfiles === undefined ? undefined : ((value.globalProfiles as Array).map(ClientProfileRepresentationToJSON)), 'profiles': value.profiles === undefined ? undefined : ((value.profiles as Array).map(ClientProfileRepresentationToJSON)), }; }