"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.instanceOfSystemInfo = instanceOfSystemInfo;
exports.SystemInfoFromJSON = SystemInfoFromJSON;
exports.SystemInfoFromJSONTyped = SystemInfoFromJSONTyped;
exports.SystemInfoToJSON = SystemInfoToJSON;
exports.SystemInfoToJSONTyped = SystemInfoToJSONTyped;
const SystemInfoRuntime_1 = require("./SystemInfoRuntime");
/**
 * Check if a given object implements the SystemInfo interface.
 */
function instanceOfSystemInfo(value) {
    if (!('httpHeaders' in value) || value['httpHeaders'] === undefined)
        return false;
    if (!('httpHost' in value) || value['httpHost'] === undefined)
        return false;
    if (!('httpIsSecure' in value) || value['httpIsSecure'] === undefined)
        return false;
    if (!('runtime' in value) || value['runtime'] === undefined)
        return false;
    if (!('brand' in value) || value['brand'] === undefined)
        return false;
    if (!('serverTime' in value) || value['serverTime'] === undefined)
        return false;
    if (!('embeddedOutpostDisabled' in value) || value['embeddedOutpostDisabled'] === undefined)
        return false;
    if (!('embeddedOutpostHost' in value) || value['embeddedOutpostHost'] === undefined)
        return false;
    return true;
}
function SystemInfoFromJSON(json) {
    return SystemInfoFromJSONTyped(json, false);
}
function SystemInfoFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'httpHeaders': json['http_headers'],
        'httpHost': json['http_host'],
        'httpIsSecure': json['http_is_secure'],
        'runtime': (0, SystemInfoRuntime_1.SystemInfoRuntimeFromJSON)(json['runtime']),
        'brand': json['brand'],
        'serverTime': (new Date(json['server_time'])),
        'embeddedOutpostDisabled': json['embedded_outpost_disabled'],
        'embeddedOutpostHost': json['embedded_outpost_host'],
    };
}
function SystemInfoToJSON(json) {
    return SystemInfoToJSONTyped(json, false);
}
function SystemInfoToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'runtime': (0, SystemInfoRuntime_1.SystemInfoRuntimeToJSON)(value['runtime']),
    };
}
//# sourceMappingURL=SystemInfo.js.map