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

/**
 * UserLogoutStage Serializer
 * @export
 * @interface UserLogoutStageRequest
 */
export interface UserLogoutStageRequest {
    /**
     *
     * @type {string}
     * @memberof UserLogoutStageRequest
     */
    name: string;
}

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

export function UserLogoutStageRequestFromJSON(json: any): UserLogoutStageRequest {
    return UserLogoutStageRequestFromJSONTyped(json, false);
}

export function UserLogoutStageRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): UserLogoutStageRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"],
    };
}

export function UserLogoutStageRequestToJSON(json: any): UserLogoutStageRequest {
    return UserLogoutStageRequestToJSONTyped(json, false);
}

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

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