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

/**
 *
 * @export
 * @interface ImpersonationRequest
 */
export interface ImpersonationRequest {
    /**
     *
     * @type {string}
     * @memberof ImpersonationRequest
     */
    reason: string;
}

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

export function ImpersonationRequestFromJSON(json: any): ImpersonationRequest {
    return ImpersonationRequestFromJSONTyped(json, false);
}

export function ImpersonationRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): ImpersonationRequest {
    if (json == null) {
        return json;
    }
    return {
        reason: json["reason"],
    };
}

export function ImpersonationRequestToJSON(json: any): ImpersonationRequest {
    return ImpersonationRequestToJSONTyped(json, false);
}

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

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