"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.instanceOfEmailDevice = instanceOfEmailDevice;
exports.EmailDeviceFromJSON = EmailDeviceFromJSON;
exports.EmailDeviceFromJSONTyped = EmailDeviceFromJSONTyped;
exports.EmailDeviceToJSON = EmailDeviceToJSON;
exports.EmailDeviceToJSONTyped = EmailDeviceToJSONTyped;
const PartialUser_1 = require("./PartialUser");
/**
 * Check if a given object implements the EmailDevice interface.
 */
function instanceOfEmailDevice(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('email' in value) || value['email'] === undefined)
        return false;
    if (!('user' in value) || value['user'] === undefined)
        return false;
    return true;
}
function EmailDeviceFromJSON(json) {
    return EmailDeviceFromJSONTyped(json, false);
}
function EmailDeviceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'pk': json['pk'],
        'email': json['email'],
        'user': (0, PartialUser_1.PartialUserFromJSON)(json['user']),
    };
}
function EmailDeviceToJSON(json) {
    return EmailDeviceToJSONTyped(json, false);
}
function EmailDeviceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
    };
}
//# sourceMappingURL=EmailDevice.js.map