/* 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 Permission */ export interface Permission { /** * * @type {{ [key: string]: object; }} * @memberof Permission */ claims?: { [key: string]: object; }; /** * * @type {string} * @memberof Permission */ rsid?: string; /** * * @type {string} * @memberof Permission */ rsname?: string; /** * * @type {Array} * @memberof Permission */ scopes?: Array; } export function PermissionFromJSON(json: any): Permission { return PermissionFromJSONTyped(json, false); } export function PermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Permission { if ((json === undefined) || (json === null)) { return json; } return { 'claims': !exists(json, 'claims') ? undefined : json['claims'], 'rsid': !exists(json, 'rsid') ? undefined : json['rsid'], 'rsname': !exists(json, 'rsname') ? undefined : json['rsname'], 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'], }; } export function PermissionToJSON(value?: Permission | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'claims': value.claims, 'rsid': value.rsid, 'rsname': value.rsname, 'scopes': value.scopes, }; }