"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.instanceOfDeviceFacts = instanceOfDeviceFacts;
exports.DeviceFactsFromJSON = DeviceFactsFromJSON;
exports.DeviceFactsFromJSONTyped = DeviceFactsFromJSONTyped;
exports.DeviceFactsToJSON = DeviceFactsToJSON;
exports.DeviceFactsToJSONTyped = DeviceFactsToJSONTyped;
const OperatingSystem_1 = require("./OperatingSystem");
const DeviceUser_1 = require("./DeviceUser");
const Network_1 = require("./Network");
const DeviceGroup_1 = require("./DeviceGroup");
const Hardware_1 = require("./Hardware");
const Process_1 = require("./Process");
const Software_1 = require("./Software");
const Disk_1 = require("./Disk");
/**
 * Check if a given object implements the DeviceFacts interface.
 */
function instanceOfDeviceFacts(value) {
    return true;
}
function DeviceFactsFromJSON(json) {
    return DeviceFactsFromJSONTyped(json, false);
}
function DeviceFactsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'os': json['os'] == null ? undefined : (0, OperatingSystem_1.OperatingSystemFromJSON)(json['os']),
        'disks': json['disks'] == null ? undefined : (json['disks'].map(Disk_1.DiskFromJSON)),
        'network': json['network'] == null ? undefined : (0, Network_1.NetworkFromJSON)(json['network']),
        'hardware': json['hardware'] == null ? undefined : (0, Hardware_1.HardwareFromJSON)(json['hardware']),
        'software': json['software'] == null ? undefined : (json['software'].map(Software_1.SoftwareFromJSON)),
        'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_1.ProcessFromJSON)),
        'users': json['users'] == null ? undefined : (json['users'].map(DeviceUser_1.DeviceUserFromJSON)),
        'groups': json['groups'] == null ? undefined : (json['groups'].map(DeviceGroup_1.DeviceGroupFromJSON)),
        'vendor': json['vendor'] == null ? undefined : json['vendor'],
    };
}
function DeviceFactsToJSON(json) {
    return DeviceFactsToJSONTyped(json, false);
}
function DeviceFactsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'os': (0, OperatingSystem_1.OperatingSystemToJSON)(value['os']),
        'disks': value['disks'] == null ? undefined : (value['disks'].map(Disk_1.DiskToJSON)),
        'network': (0, Network_1.NetworkToJSON)(value['network']),
        'hardware': (0, Hardware_1.HardwareToJSON)(value['hardware']),
        'software': value['software'] == null ? undefined : (value['software'].map(Software_1.SoftwareToJSON)),
        'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_1.ProcessToJSON)),
        'users': value['users'] == null ? undefined : (value['users'].map(DeviceUser_1.DeviceUserToJSON)),
        'groups': value['groups'] == null ? undefined : (value['groups'].map(DeviceGroup_1.DeviceGroupToJSON)),
        'vendor': value['vendor'],
    };
}
//# sourceMappingURL=DeviceFacts.js.map