Files
auth/backend/keycloak/kc-client/models/RoleRepresentationComposites.ts
2022-09-05 17:02:45 +02:00

66 lines
1.6 KiB
TypeScript

/* 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';
/**
*
* @export
* @interface RoleRepresentationComposites
*/
export interface RoleRepresentationComposites {
/**
*
* @type {{ [key: string]: object; }}
* @memberof RoleRepresentationComposites
*/
client?: { [key: string]: object; };
/**
*
* @type {Array<string>}
* @memberof RoleRepresentationComposites
*/
realm?: Array<string>;
}
export function RoleRepresentationCompositesFromJSON(json: any): RoleRepresentationComposites {
return RoleRepresentationCompositesFromJSONTyped(json, false);
}
export function RoleRepresentationCompositesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleRepresentationComposites {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'client': !exists(json, 'client') ? undefined : json['client'],
'realm': !exists(json, 'realm') ? undefined : json['realm'],
};
}
export function RoleRepresentationCompositesToJSON(value?: RoleRepresentationComposites | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'client': value.client,
'realm': value.realm,
};
}