"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.instanceOfAuthenticatorSMSStage = instanceOfAuthenticatorSMSStage;
exports.AuthenticatorSMSStageFromJSON = AuthenticatorSMSStageFromJSON;
exports.AuthenticatorSMSStageFromJSONTyped = AuthenticatorSMSStageFromJSONTyped;
exports.AuthenticatorSMSStageToJSON = AuthenticatorSMSStageToJSON;
exports.AuthenticatorSMSStageToJSONTyped = AuthenticatorSMSStageToJSONTyped;
const FlowSet_1 = require("./FlowSet");
const ProviderEnum_1 = require("./ProviderEnum");
const AuthTypeEnum_1 = require("./AuthTypeEnum");
/**
 * Check if a given object implements the AuthenticatorSMSStage interface.
 */
function instanceOfAuthenticatorSMSStage(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;
    if (!('flowSet' in value) || value['flowSet'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('fromNumber' in value) || value['fromNumber'] === undefined)
        return false;
    if (!('accountSid' in value) || value['accountSid'] === undefined)
        return false;
    if (!('auth' in value) || value['auth'] === undefined)
        return false;
    return true;
}
function AuthenticatorSMSStageFromJSON(json) {
    return AuthenticatorSMSStageFromJSONTyped(json, false);
}
function AuthenticatorSMSStageFromJSONTyped(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'].map(FlowSet_1.FlowSetFromJSON)),
        'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
        'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
        'provider': (0, ProviderEnum_1.ProviderEnumFromJSON)(json['provider']),
        'fromNumber': json['from_number'],
        'accountSid': json['account_sid'],
        'auth': json['auth'],
        'authPassword': json['auth_password'] == null ? undefined : json['auth_password'],
        'authType': json['auth_type'] == null ? undefined : (0, AuthTypeEnum_1.AuthTypeEnumFromJSON)(json['auth_type']),
        'verifyOnly': json['verify_only'] == null ? undefined : json['verify_only'],
        'mapping': json['mapping'] == null ? undefined : json['mapping'],
    };
}
function AuthenticatorSMSStageToJSON(json) {
    return AuthenticatorSMSStageToJSONTyped(json, false);
}
function AuthenticatorSMSStageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'configure_flow': value['configureFlow'],
        'friendly_name': value['friendlyName'],
        'provider': (0, ProviderEnum_1.ProviderEnumToJSON)(value['provider']),
        'from_number': value['fromNumber'],
        'account_sid': value['accountSid'],
        'auth': value['auth'],
        'auth_password': value['authPassword'],
        'auth_type': (0, AuthTypeEnum_1.AuthTypeEnumToJSON)(value['authType']),
        'verify_only': value['verifyOnly'],
        'mapping': value['mapping'],
    };
}
//# sourceMappingURL=AuthenticatorSMSStage.js.map