/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * 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.
 */

/**
 * DenyStage Serializer
 * @export
 * @interface PatchedDenyStageRequest
 */
export interface PatchedDenyStageRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedDenyStageRequest
     */
    name?: string;
    /**
     *
     * @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"],
        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"],
        deny_message: value["denyMessage"],
    };
}
