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

/**
 * UserDeleteStage Serializer
 * @export
 * @interface PatchedUserDeleteStageRequest
 */
export interface PatchedUserDeleteStageRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedUserDeleteStageRequest
     */
    name?: string;
}

/**
 * Check if a given object implements the PatchedUserDeleteStageRequest interface.
 */
export function instanceOfPatchedUserDeleteStageRequest(
    value: object,
): value is PatchedUserDeleteStageRequest {
    return true;
}

export function PatchedUserDeleteStageRequestFromJSON(json: any): PatchedUserDeleteStageRequest {
    return PatchedUserDeleteStageRequestFromJSONTyped(json, false);
}

export function PatchedUserDeleteStageRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedUserDeleteStageRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"] == null ? undefined : json["name"],
    };
}

export function PatchedUserDeleteStageRequestToJSON(json: any): PatchedUserDeleteStageRequest {
    return PatchedUserDeleteStageRequestToJSONTyped(json, false);
}

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

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