"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfDeviceUser = instanceOfDeviceUser;
exports.DeviceUserFromJSON = DeviceUserFromJSON;
exports.DeviceUserFromJSONTyped = DeviceUserFromJSONTyped;
exports.DeviceUserToJSON = DeviceUserToJSON;
exports.DeviceUserToJSONTyped = DeviceUserToJSONTyped;
/**
 * Check if a given object implements the DeviceUser interface.
 */
function instanceOfDeviceUser(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    return true;
}
function DeviceUserFromJSON(json) {
    return DeviceUserFromJSONTyped(json, false);
}
function DeviceUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'username': json['username'] == null ? undefined : json['username'],
        'name': json['name'] == null ? undefined : json['name'],
        'home': json['home'] == null ? undefined : json['home'],
    };
}
function DeviceUserToJSON(json) {
    return DeviceUserToJSONTyped(json, false);
}
function DeviceUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'username': value['username'],
        'name': value['name'],
        'home': value['home'],
    };
}
//# sourceMappingURL=DeviceUser.js.map