/* 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 ScopeMappingRepresentation */ export interface ScopeMappingRepresentation { /** * * @type {string} * @memberof ScopeMappingRepresentation */ client?: string; /** * * @type {string} * @memberof ScopeMappingRepresentation */ clientScope?: string; /** * * @type {Array} * @memberof ScopeMappingRepresentation */ roles?: Array; /** * * @type {string} * @memberof ScopeMappingRepresentation */ self?: string; } export function ScopeMappingRepresentationFromJSON(json: any): ScopeMappingRepresentation { return ScopeMappingRepresentationFromJSONTyped(json, false); } export function ScopeMappingRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScopeMappingRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'client': !exists(json, 'client') ? undefined : json['client'], 'clientScope': !exists(json, 'clientScope') ? undefined : json['clientScope'], 'roles': !exists(json, 'roles') ? undefined : json['roles'], 'self': !exists(json, 'self') ? undefined : json['self'], }; } export function ScopeMappingRepresentationToJSON(value?: ScopeMappingRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'client': value.client, 'clientScope': value.clientScope, 'roles': value.roles, 'self': value.self, }; }