"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfStaticDevice = instanceOfStaticDevice;
exports.StaticDeviceFromJSON = StaticDeviceFromJSON;
exports.StaticDeviceFromJSONTyped = StaticDeviceFromJSONTyped;
exports.StaticDeviceToJSON = StaticDeviceToJSON;
exports.StaticDeviceToJSONTyped = StaticDeviceToJSONTyped;
const PartialUser_1 = require("./PartialUser");
const StaticDeviceToken_1 = require("./StaticDeviceToken");
/**
 * Check if a given object implements the StaticDevice interface.
 */
function instanceOfStaticDevice(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('tokenSet' in value) || value['tokenSet'] === undefined)
        return false;
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('user' in value) || value['user'] === undefined)
        return false;
    return true;
}
function StaticDeviceFromJSON(json) {
    return StaticDeviceFromJSONTyped(json, false);
}
function StaticDeviceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'tokenSet': (json['token_set'].map(StaticDeviceToken_1.StaticDeviceTokenFromJSON)),
        'pk': json['pk'],
        'user': (0, PartialUser_1.PartialUserFromJSON)(json['user']),
    };
}
function StaticDeviceToJSON(json) {
    return StaticDeviceToJSONTyped(json, false);
}
function StaticDeviceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
    };
}
//# sourceMappingURL=StaticDevice.js.map