/* 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.
 */

/**
 * DummyStage Serializer
 * @export
 * @interface DummyStageRequest
 */
export interface DummyStageRequest {
    /**
     *
     * @type {string}
     * @memberof DummyStageRequest
     */
    name: string;
    /**
     *
     * @type {boolean}
     * @memberof DummyStageRequest
     */
    throwError?: boolean;
}

/**
 * Check if a given object implements the DummyStageRequest interface.
 */
export function instanceOfDummyStageRequest(value: object): value is DummyStageRequest {
    if (!("name" in value) || value["name"] === undefined) return false;
    return true;
}

export function DummyStageRequestFromJSON(json: any): DummyStageRequest {
    return DummyStageRequestFromJSONTyped(json, false);
}

export function DummyStageRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): DummyStageRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"],
        throwError: json["throw_error"] == null ? undefined : json["throw_error"],
    };
}

export function DummyStageRequestToJSON(json: any): DummyStageRequest {
    return DummyStageRequestToJSONTyped(json, false);
}

export function DummyStageRequestToJSONTyped(
    value?: DummyStageRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        name: value["name"],
        throw_error: value["throwError"],
    };
}
