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

82 lines
2.2 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 ProfileInfoRepresentation
*/
export interface ProfileInfoRepresentation {
/**
*
* @type {Array<string>}
* @memberof ProfileInfoRepresentation
*/
disabledFeatures?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof ProfileInfoRepresentation
*/
experimentalFeatures?: Array<string>;
/**
*
* @type {string}
* @memberof ProfileInfoRepresentation
*/
name?: string;
/**
*
* @type {Array<string>}
* @memberof ProfileInfoRepresentation
*/
previewFeatures?: Array<string>;
}
export function ProfileInfoRepresentationFromJSON(json: any): ProfileInfoRepresentation {
return ProfileInfoRepresentationFromJSONTyped(json, false);
}
export function ProfileInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileInfoRepresentation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'disabledFeatures': !exists(json, 'disabledFeatures') ? undefined : json['disabledFeatures'],
'experimentalFeatures': !exists(json, 'experimentalFeatures') ? undefined : json['experimentalFeatures'],
'name': !exists(json, 'name') ? undefined : json['name'],
'previewFeatures': !exists(json, 'previewFeatures') ? undefined : json['previewFeatures'],
};
}
export function ProfileInfoRepresentationToJSON(value?: ProfileInfoRepresentation | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'disabledFeatures': value.disabledFeatures,
'experimentalFeatures': value.experimentalFeatures,
'name': value.name,
'previewFeatures': value.previewFeatures,
};
}