"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfEmailStageRequest = instanceOfEmailStageRequest;
exports.EmailStageRequestFromJSON = EmailStageRequestFromJSON;
exports.EmailStageRequestFromJSONTyped = EmailStageRequestFromJSONTyped;
exports.EmailStageRequestToJSON = EmailStageRequestToJSON;
exports.EmailStageRequestToJSONTyped = EmailStageRequestToJSONTyped;
const FlowSetRequest_1 = require("./FlowSetRequest");
/**
 * Check if a given object implements the EmailStageRequest interface.
 */
function instanceOfEmailStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function EmailStageRequestFromJSON(json) {
    return EmailStageRequestFromJSONTyped(json, false);
}
function EmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        '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 EmailStageRequestToJSON(json) {
    return EmailStageRequestToJSONTyped(json, false);
}
function EmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
        '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=EmailStageRequest.js.map