"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.instanceOfSMSDevice = instanceOfSMSDevice;
exports.SMSDeviceFromJSON = SMSDeviceFromJSON;
exports.SMSDeviceFromJSONTyped = SMSDeviceFromJSONTyped;
exports.SMSDeviceToJSON = SMSDeviceToJSON;
exports.SMSDeviceToJSONTyped = SMSDeviceToJSONTyped;
const GroupMember_1 = require("./GroupMember");
/**
 * Check if a given object implements the SMSDevice interface.
 */
function instanceOfSMSDevice(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
        return false;
    if (!('user' in value) || value['user'] === undefined)
        return false;
    return true;
}
function SMSDeviceFromJSON(json) {
    return SMSDeviceFromJSONTyped(json, false);
}
function SMSDeviceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'pk': json['pk'],
        'phoneNumber': json['phone_number'],
        'user': (0, GroupMember_1.GroupMemberFromJSON)(json['user']),
    };
}
function SMSDeviceToJSON(json) {
    return SMSDeviceToJSONTyped(json, false);
}
function SMSDeviceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
    };
}
//# sourceMappingURL=SMSDevice.js.map