/* 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 PatchedDenyStageRequest */ export interface PatchedDenyStageRequest { /** * * @type {string} * @memberof PatchedDenyStageRequest */ name?: string; /** * * @type {Array} * @memberof PatchedDenyStageRequest */ flowSet?: Array; /** * * @type {string} * @memberof PatchedDenyStageRequest */ denyMessage?: string; } /** * Check if a given object implements the PatchedDenyStageRequest interface. */ export function instanceOfPatchedDenyStageRequest(value: object): value is PatchedDenyStageRequest { return true; } export function PatchedDenyStageRequestFromJSON(json: any): PatchedDenyStageRequest { return PatchedDenyStageRequestFromJSONTyped(json, false); } export function PatchedDenyStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedDenyStageRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : 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 PatchedDenyStageRequestToJSON(json: any): PatchedDenyStageRequest { return PatchedDenyStageRequestToJSONTyped(json, false); } export function PatchedDenyStageRequestToJSONTyped(value?: PatchedDenyStageRequest | 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'], }; }