"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.instanceOfAuthenticatorSMSStageRequest = instanceOfAuthenticatorSMSStageRequest;
exports.AuthenticatorSMSStageRequestFromJSON = AuthenticatorSMSStageRequestFromJSON;
exports.AuthenticatorSMSStageRequestFromJSONTyped = AuthenticatorSMSStageRequestFromJSONTyped;
exports.AuthenticatorSMSStageRequestToJSON = AuthenticatorSMSStageRequestToJSON;
exports.AuthenticatorSMSStageRequestToJSONTyped = AuthenticatorSMSStageRequestToJSONTyped;
const ProviderEnum_1 = require("./ProviderEnum");
const FlowSetRequest_1 = require("./FlowSetRequest");
const AuthTypeEnum_1 = require("./AuthTypeEnum");
/**
 * Check if a given object implements the AuthenticatorSMSStageRequest interface.
 */
function instanceOfAuthenticatorSMSStageRequest(value) {
    if (!('name' in value) || value['name'] === 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 AuthenticatorSMSStageRequestFromJSON(json) {
    return AuthenticatorSMSStageRequestFromJSONTyped(json, false);
}
function AuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        '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 AuthenticatorSMSStageRequestToJSON(json) {
    return AuthenticatorSMSStageRequestToJSONTyped(json, false);
}
function AuthenticatorSMSStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
        '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=AuthenticatorSMSStageRequest.js.map