/* 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'; import { ConfigPropertyRepresentation, ConfigPropertyRepresentationFromJSON, ConfigPropertyRepresentationFromJSONTyped, ConfigPropertyRepresentationToJSON, } from './'; /** * * @export * @interface AuthenticatorConfigInfoRepresentation */ export interface AuthenticatorConfigInfoRepresentation { /** * * @type {string} * @memberof AuthenticatorConfigInfoRepresentation */ helpText?: string; /** * * @type {string} * @memberof AuthenticatorConfigInfoRepresentation */ name?: string; /** * * @type {Array} * @memberof AuthenticatorConfigInfoRepresentation */ properties?: Array; /** * * @type {string} * @memberof AuthenticatorConfigInfoRepresentation */ providerId?: string; } export function AuthenticatorConfigInfoRepresentationFromJSON(json: any): AuthenticatorConfigInfoRepresentation { return AuthenticatorConfigInfoRepresentationFromJSONTyped(json, false); } export function AuthenticatorConfigInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorConfigInfoRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'helpText': !exists(json, 'helpText') ? undefined : json['helpText'], 'name': !exists(json, 'name') ? undefined : json['name'], 'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array).map(ConfigPropertyRepresentationFromJSON)), 'providerId': !exists(json, 'providerId') ? undefined : json['providerId'], }; } export function AuthenticatorConfigInfoRepresentationToJSON(value?: AuthenticatorConfigInfoRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'helpText': value.helpText, 'name': value.name, 'properties': value.properties === undefined ? undefined : ((value.properties as Array).map(ConfigPropertyRepresentationToJSON)), 'providerId': value.providerId, }; }