"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfUserRecoveryEmailRequest = instanceOfUserRecoveryEmailRequest;
exports.UserRecoveryEmailRequestFromJSON = UserRecoveryEmailRequestFromJSON;
exports.UserRecoveryEmailRequestFromJSONTyped = UserRecoveryEmailRequestFromJSONTyped;
exports.UserRecoveryEmailRequestToJSON = UserRecoveryEmailRequestToJSON;
exports.UserRecoveryEmailRequestToJSONTyped = UserRecoveryEmailRequestToJSONTyped;
/**
 * Check if a given object implements the UserRecoveryEmailRequest interface.
 */
function instanceOfUserRecoveryEmailRequest(value) {
    if (!('emailStage' in value) || value['emailStage'] === undefined)
        return false;
    return true;
}
function UserRecoveryEmailRequestFromJSON(json) {
    return UserRecoveryEmailRequestFromJSONTyped(json, false);
}
function UserRecoveryEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'tokenDuration': json['token_duration'] == null ? undefined : json['token_duration'],
        'emailStage': json['email_stage'],
    };
}
function UserRecoveryEmailRequestToJSON(json) {
    return UserRecoveryEmailRequestToJSONTyped(json, false);
}
function UserRecoveryEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'token_duration': value['tokenDuration'],
        'email_stage': value['emailStage'],
    };
}
//# sourceMappingURL=UserRecoveryEmailRequest.js.map