"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.instanceOfOperatingSystemRequest = instanceOfOperatingSystemRequest;
exports.OperatingSystemRequestFromJSON = OperatingSystemRequestFromJSON;
exports.OperatingSystemRequestFromJSONTyped = OperatingSystemRequestFromJSONTyped;
exports.OperatingSystemRequestToJSON = OperatingSystemRequestToJSON;
exports.OperatingSystemRequestToJSONTyped = OperatingSystemRequestToJSONTyped;
const DeviceFactsOSFamily_1 = require("./DeviceFactsOSFamily");
/**
 * Check if a given object implements the OperatingSystemRequest interface.
 */
function instanceOfOperatingSystemRequest(value) {
    if (!('family' in value) || value['family'] === undefined)
        return false;
    if (!('arch' in value) || value['arch'] === undefined)
        return false;
    return true;
}
function OperatingSystemRequestFromJSON(json) {
    return OperatingSystemRequestFromJSONTyped(json, false);
}
function OperatingSystemRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'family': (0, DeviceFactsOSFamily_1.DeviceFactsOSFamilyFromJSON)(json['family']),
        'name': json['name'] == null ? undefined : json['name'],
        'version': json['version'] == null ? undefined : json['version'],
        'arch': json['arch'],
    };
}
function OperatingSystemRequestToJSON(json) {
    return OperatingSystemRequestToJSONTyped(json, false);
}
function OperatingSystemRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'family': (0, DeviceFactsOSFamily_1.DeviceFactsOSFamilyToJSON)(value['family']),
        'name': value['name'],
        'version': value['version'],
        'arch': value['arch'],
    };
}
//# sourceMappingURL=OperatingSystemRequest.js.map