"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfPatchedAuthenticatorSMSStageRequest = instanceOfPatchedAuthenticatorSMSStageRequest;
exports.PatchedAuthenticatorSMSStageRequestFromJSON = PatchedAuthenticatorSMSStageRequestFromJSON;
exports.PatchedAuthenticatorSMSStageRequestFromJSONTyped = PatchedAuthenticatorSMSStageRequestFromJSONTyped;
exports.PatchedAuthenticatorSMSStageRequestToJSON = PatchedAuthenticatorSMSStageRequestToJSON;
exports.PatchedAuthenticatorSMSStageRequestToJSONTyped = PatchedAuthenticatorSMSStageRequestToJSONTyped;
const ProviderEnum_1 = require("./ProviderEnum");
const FlowSetRequest_1 = require("./FlowSetRequest");
const AuthTypeEnum_1 = require("./AuthTypeEnum");
/**
 * Check if a given object implements the PatchedAuthenticatorSMSStageRequest interface.
 */
function instanceOfPatchedAuthenticatorSMSStageRequest(value) {
    return true;
}
function PatchedAuthenticatorSMSStageRequestFromJSON(json) {
    return PatchedAuthenticatorSMSStageRequestFromJSONTyped(json, false);
}
function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : 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': json['provider'] == null ? undefined : (0, ProviderEnum_1.ProviderEnumFromJSON)(json['provider']),
        'fromNumber': json['from_number'] == null ? undefined : json['from_number'],
        'accountSid': json['account_sid'] == null ? undefined : json['account_sid'],
        'auth': json['auth'] == null ? undefined : 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 PatchedAuthenticatorSMSStageRequestToJSON(json) {
    return PatchedAuthenticatorSMSStageRequestToJSONTyped(json, false);
}
function PatchedAuthenticatorSMSStageRequestToJSONTyped(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=PatchedAuthenticatorSMSStageRequest.js.map