/* 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 { AuthenticationExecutionExportRepresentation, AuthenticationExecutionExportRepresentationFromJSON, AuthenticationExecutionExportRepresentationFromJSONTyped, AuthenticationExecutionExportRepresentationToJSON, } from './'; /** * * @export * @interface AuthenticationFlowRepresentation */ export interface AuthenticationFlowRepresentation { /** * * @type {string} * @memberof AuthenticationFlowRepresentation */ alias?: string; /** * * @type {Array} * @memberof AuthenticationFlowRepresentation */ authenticationExecutions?: Array; /** * * @type {boolean} * @memberof AuthenticationFlowRepresentation */ builtIn?: boolean; /** * * @type {string} * @memberof AuthenticationFlowRepresentation */ description?: string; /** * * @type {string} * @memberof AuthenticationFlowRepresentation */ id?: string; /** * * @type {string} * @memberof AuthenticationFlowRepresentation */ providerId?: string; /** * * @type {boolean} * @memberof AuthenticationFlowRepresentation */ topLevel?: boolean; } export function AuthenticationFlowRepresentationFromJSON(json: any): AuthenticationFlowRepresentation { return AuthenticationFlowRepresentationFromJSONTyped(json, false); } export function AuthenticationFlowRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationFlowRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'alias': !exists(json, 'alias') ? undefined : json['alias'], 'authenticationExecutions': !exists(json, 'authenticationExecutions') ? undefined : ((json['authenticationExecutions'] as Array).map(AuthenticationExecutionExportRepresentationFromJSON)), 'builtIn': !exists(json, 'builtIn') ? undefined : json['builtIn'], 'description': !exists(json, 'description') ? undefined : json['description'], 'id': !exists(json, 'id') ? undefined : json['id'], 'providerId': !exists(json, 'providerId') ? undefined : json['providerId'], 'topLevel': !exists(json, 'topLevel') ? undefined : json['topLevel'], }; } export function AuthenticationFlowRepresentationToJSON(value?: AuthenticationFlowRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'alias': value.alias, 'authenticationExecutions': value.authenticationExecutions === undefined ? undefined : ((value.authenticationExecutions as Array).map(AuthenticationExecutionExportRepresentationToJSON)), 'builtIn': value.builtIn, 'description': value.description, 'id': value.id, 'providerId': value.providerId, 'topLevel': value.topLevel, }; }