"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPatchedEmailStageRequest = instanceOfPatchedEmailStageRequest;
exports.PatchedEmailStageRequestFromJSON = PatchedEmailStageRequestFromJSON;
exports.PatchedEmailStageRequestFromJSONTyped = PatchedEmailStageRequestFromJSONTyped;
exports.PatchedEmailStageRequestToJSON = PatchedEmailStageRequestToJSON;
exports.PatchedEmailStageRequestToJSONTyped = PatchedEmailStageRequestToJSONTyped;
/**
 * Check if a given object implements the PatchedEmailStageRequest interface.
 */
function instanceOfPatchedEmailStageRequest(value) {
    return true;
}
function PatchedEmailStageRequestFromJSON(json) {
    return PatchedEmailStageRequestFromJSONTyped(json, false);
}
function PatchedEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
        'host': json['host'] == null ? undefined : json['host'],
        'port': json['port'] == null ? undefined : json['port'],
        'username': json['username'] == null ? undefined : json['username'],
        'password': json['password'] == null ? undefined : json['password'],
        'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
        'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
        'timeout': json['timeout'] == null ? undefined : json['timeout'],
        'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
        'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
        'subject': json['subject'] == null ? undefined : json['subject'],
        'template': json['template'] == null ? undefined : json['template'],
        'activateUserOnSuccess': json['activate_user_on_success'] == null ? undefined : json['activate_user_on_success'],
        'recoveryMaxAttempts': json['recovery_max_attempts'] == null ? undefined : json['recovery_max_attempts'],
        'recoveryCacheTimeout': json['recovery_cache_timeout'] == null ? undefined : json['recovery_cache_timeout'],
    };
}
function PatchedEmailStageRequestToJSON(json) {
    return PatchedEmailStageRequestToJSONTyped(json, false);
}
function PatchedEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'use_global_settings': value['useGlobalSettings'],
        'host': value['host'],
        'port': value['port'],
        'username': value['username'],
        'password': value['password'],
        'use_tls': value['useTls'],
        'use_ssl': value['useSsl'],
        'timeout': value['timeout'],
        'from_address': value['fromAddress'],
        'token_expiry': value['tokenExpiry'],
        'subject': value['subject'],
        'template': value['template'],
        'activate_user_on_success': value['activateUserOnSuccess'],
        'recovery_max_attempts': value['recoveryMaxAttempts'],
        'recovery_cache_timeout': value['recoveryCacheTimeout'],
    };
}
//# sourceMappingURL=PatchedEmailStageRequest.js.map