"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfHardware = instanceOfHardware;
exports.HardwareFromJSON = HardwareFromJSON;
exports.HardwareFromJSONTyped = HardwareFromJSONTyped;
exports.HardwareToJSON = HardwareToJSON;
exports.HardwareToJSONTyped = HardwareToJSONTyped;
/**
 * Check if a given object implements the Hardware interface.
 */
function instanceOfHardware(value) {
    if (!('serial' in value) || value['serial'] === undefined)
        return false;
    return true;
}
function HardwareFromJSON(json) {
    return HardwareFromJSONTyped(json, false);
}
function HardwareFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'model': json['model'] == null ? undefined : json['model'],
        'manufacturer': json['manufacturer'] == null ? undefined : json['manufacturer'],
        'serial': json['serial'],
        'cpuName': json['cpu_name'] == null ? undefined : json['cpu_name'],
        'cpuCount': json['cpu_count'] == null ? undefined : json['cpu_count'],
        'memoryBytes': json['memory_bytes'] == null ? undefined : json['memory_bytes'],
    };
}
function HardwareToJSON(json) {
    return HardwareToJSONTyped(json, false);
}
function HardwareToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'model': value['model'],
        'manufacturer': value['manufacturer'],
        'serial': value['serial'],
        'cpu_name': value['cpuName'],
        'cpu_count': value['cpuCount'],
        'memory_bytes': value['memoryBytes'],
    };
}
//# sourceMappingURL=Hardware.js.map