"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.instanceOfHardwareRequest = instanceOfHardwareRequest;
exports.HardwareRequestFromJSON = HardwareRequestFromJSON;
exports.HardwareRequestFromJSONTyped = HardwareRequestFromJSONTyped;
exports.HardwareRequestToJSON = HardwareRequestToJSON;
exports.HardwareRequestToJSONTyped = HardwareRequestToJSONTyped;
/**
 * Check if a given object implements the HardwareRequest interface.
 */
function instanceOfHardwareRequest(value) {
    if (!('serial' in value) || value['serial'] === undefined)
        return false;
    return true;
}
function HardwareRequestFromJSON(json) {
    return HardwareRequestFromJSONTyped(json, false);
}
function HardwareRequestFromJSONTyped(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 HardwareRequestToJSON(json) {
    return HardwareRequestToJSONTyped(json, false);
}
function HardwareRequestToJSONTyped(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=HardwareRequest.js.map