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

/**
 * Choose the target account before starting the lockdown flow.
 * @export
 * @interface UserAccountLockdownRequest
 */
export interface UserAccountLockdownRequest {
    /**
     * User to lock. If omitted, locks the current user (self-service).
     * @type {number}
     * @memberof UserAccountLockdownRequest
     */
    user?: number | null;
}

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

export function UserAccountLockdownRequestFromJSON(json: any): UserAccountLockdownRequest {
    return UserAccountLockdownRequestFromJSONTyped(json, false);
}

export function UserAccountLockdownRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): UserAccountLockdownRequest {
    if (json == null) {
        return json;
    }
    return {
        user: json["user"] == null ? undefined : json["user"],
    };
}

export function UserAccountLockdownRequestToJSON(json: any): UserAccountLockdownRequest {
    return UserAccountLockdownRequestToJSONTyped(json, false);
}

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

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