"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.instanceOfDeviceUserRequest = instanceOfDeviceUserRequest;
exports.DeviceUserRequestFromJSON = DeviceUserRequestFromJSON;
exports.DeviceUserRequestFromJSONTyped = DeviceUserRequestFromJSONTyped;
exports.DeviceUserRequestToJSON = DeviceUserRequestToJSON;
exports.DeviceUserRequestToJSONTyped = DeviceUserRequestToJSONTyped;
/**
 * Check if a given object implements the DeviceUserRequest interface.
 */
function instanceOfDeviceUserRequest(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    return true;
}
function DeviceUserRequestFromJSON(json) {
    return DeviceUserRequestFromJSONTyped(json, false);
}
function DeviceUserRequestFromJSONTyped(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 DeviceUserRequestToJSON(json) {
    return DeviceUserRequestToJSONTyped(json, false);
}
function DeviceUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'username': value['username'],
        'name': value['name'],
        'home': value['home'],
    };
}
//# sourceMappingURL=DeviceUserRequest.js.map