/* 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 { RoleRepresentation, RoleRepresentationFromJSON, RoleRepresentationFromJSONTyped, RoleRepresentationToJSON, } from './'; /** * * @export * @interface ClientMappingsRepresentation */ export interface ClientMappingsRepresentation { /** * * @type {string} * @memberof ClientMappingsRepresentation */ client?: string; /** * * @type {string} * @memberof ClientMappingsRepresentation */ id?: string; /** * * @type {Array} * @memberof ClientMappingsRepresentation */ mappings?: Array; } export function ClientMappingsRepresentationFromJSON(json: any): ClientMappingsRepresentation { return ClientMappingsRepresentationFromJSONTyped(json, false); } export function ClientMappingsRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientMappingsRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'client': !exists(json, 'client') ? undefined : json['client'], 'id': !exists(json, 'id') ? undefined : json['id'], 'mappings': !exists(json, 'mappings') ? undefined : ((json['mappings'] as Array).map(RoleRepresentationFromJSON)), }; } export function ClientMappingsRepresentationToJSON(value?: ClientMappingsRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'client': value.client, 'id': value.id, 'mappings': value.mappings === undefined ? undefined : ((value.mappings as Array).map(RoleRepresentationToJSON)), }; }