/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { FlowSetRequest } from './FlowSetRequest'; import { FlowSetRequestFromJSON, FlowSetRequestFromJSONTyped, FlowSetRequestToJSON, FlowSetRequestToJSONTyped, } from './FlowSetRequest'; /** * DenyStage Serializer * @export * @interface DenyStageRequest */ export interface DenyStageRequest { /** * * @type {string} * @memberof DenyStageRequest */ name: string; /** * * @type {Array} * @memberof DenyStageRequest */ flowSet?: Array; /** * * @type {string} * @memberof DenyStageRequest */ denyMessage?: string; } /** * Check if a given object implements the DenyStageRequest interface. */ export function instanceOfDenyStageRequest(value: object): value is DenyStageRequest { if (!('name' in value) || value['name'] === undefined) return false; return true; } export function DenyStageRequestFromJSON(json: any): DenyStageRequest { return DenyStageRequestFromJSONTyped(json, false); } export function DenyStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DenyStageRequest { if (json == null) { return json; } return { 'name': json['name'], 'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array).map(FlowSetRequestFromJSON)), 'denyMessage': json['deny_message'] == null ? undefined : json['deny_message'], }; } export function DenyStageRequestToJSON(json: any): DenyStageRequest { return DenyStageRequestToJSONTyped(json, false); } export function DenyStageRequestToJSONTyped(value?: DenyStageRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array).map(FlowSetRequestToJSON)), 'deny_message': value['denyMessage'], }; }