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

/**
 * Payload to create a recovery link
 * @export
 * @interface UserRecoveryLinkRequest
 */
export interface UserRecoveryLinkRequest {
    /**
     *
     * @type {string}
     * @memberof UserRecoveryLinkRequest
     */
    tokenDuration?: string;
}

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

export function UserRecoveryLinkRequestFromJSON(json: any): UserRecoveryLinkRequest {
    return UserRecoveryLinkRequestFromJSONTyped(json, false);
}

export function UserRecoveryLinkRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): UserRecoveryLinkRequest {
    if (json == null) {
        return json;
    }
    return {
        tokenDuration: json["token_duration"] == null ? undefined : json["token_duration"],
    };
}

export function UserRecoveryLinkRequestToJSON(json: any): UserRecoveryLinkRequest {
    return UserRecoveryLinkRequestToJSONTyped(json, false);
}

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

    return {
        token_duration: value["tokenDuration"],
    };
}
