"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.instanceOfNetwork = instanceOfNetwork;
exports.NetworkFromJSON = NetworkFromJSON;
exports.NetworkFromJSONTyped = NetworkFromJSONTyped;
exports.NetworkToJSON = NetworkToJSON;
exports.NetworkToJSONTyped = NetworkToJSONTyped;
const NetworkInterface_1 = require("./NetworkInterface");
/**
 * Check if a given object implements the Network interface.
 */
function instanceOfNetwork(value) {
    if (!('hostname' in value) || value['hostname'] === undefined)
        return false;
    if (!('interfaces' in value) || value['interfaces'] === undefined)
        return false;
    return true;
}
function NetworkFromJSON(json) {
    return NetworkFromJSONTyped(json, false);
}
function NetworkFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'hostname': json['hostname'],
        'firewallEnabled': json['firewall_enabled'] == null ? undefined : json['firewall_enabled'],
        'interfaces': (json['interfaces'].map(NetworkInterface_1.NetworkInterfaceFromJSON)),
        'gateway': json['gateway'] == null ? undefined : json['gateway'],
    };
}
function NetworkToJSON(json) {
    return NetworkToJSONTyped(json, false);
}
function NetworkToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'hostname': value['hostname'],
        'firewall_enabled': value['firewallEnabled'],
        'interfaces': (value['interfaces'].map(NetworkInterface_1.NetworkInterfaceToJSON)),
        'gateway': value['gateway'],
    };
}
//# sourceMappingURL=Network.js.map