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