"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.instanceOfEmailStage = instanceOfEmailStage;
exports.EmailStageFromJSON = EmailStageFromJSON;
exports.EmailStageFromJSONTyped = EmailStageFromJSONTyped;
exports.EmailStageToJSON = EmailStageToJSON;
exports.EmailStageToJSONTyped = EmailStageToJSONTyped;
const FlowSet_1 = require("./FlowSet");
/**
 * Check if a given object implements the EmailStage interface.
 */
function instanceOfEmailStage(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    return true;
}
function EmailStageFromJSON(json) {
    return EmailStageFromJSONTyped(json, false);
}
function EmailStageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
        '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'],
        '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 EmailStageToJSON(json) {
    return EmailStageToJSONTyped(json, false);
}
function EmailStageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSet_1.FlowSetToJSON)),
        'use_global_settings': value['useGlobalSettings'],
        'host': value['host'],
        'port': value['port'],
        'username': value['username'],
        '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=EmailStage.js.map