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

74 lines
1.8 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 AuthenticatorConfigRepresentation
*/
export interface AuthenticatorConfigRepresentation {
/**
*
* @type {string}
* @memberof AuthenticatorConfigRepresentation
*/
alias?: string;
/**
*
* @type {{ [key: string]: object; }}
* @memberof AuthenticatorConfigRepresentation
*/
config?: { [key: string]: object; };
/**
*
* @type {string}
* @memberof AuthenticatorConfigRepresentation
*/
id?: string;
}
export function AuthenticatorConfigRepresentationFromJSON(json: any): AuthenticatorConfigRepresentation {
return AuthenticatorConfigRepresentationFromJSONTyped(json, false);
}
export function AuthenticatorConfigRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorConfigRepresentation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'alias': !exists(json, 'alias') ? undefined : json['alias'],
'config': !exists(json, 'config') ? undefined : json['config'],
'id': !exists(json, 'id') ? undefined : json['id'],
};
}
export function AuthenticatorConfigRepresentationToJSON(value?: AuthenticatorConfigRepresentation | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'alias': value.alias,
'config': value.config,
'id': value.id,
};
}