"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.instanceOfNetworkRequest = instanceOfNetworkRequest;
exports.NetworkRequestFromJSON = NetworkRequestFromJSON;
exports.NetworkRequestFromJSONTyped = NetworkRequestFromJSONTyped;
exports.NetworkRequestToJSON = NetworkRequestToJSON;
exports.NetworkRequestToJSONTyped = NetworkRequestToJSONTyped;
const NetworkInterfaceRequest_1 = require("./NetworkInterfaceRequest");
/**
 * Check if a given object implements the NetworkRequest interface.
 */
function instanceOfNetworkRequest(value) {
    if (!('hostname' in value) || value['hostname'] === undefined)
        return false;
    if (!('interfaces' in value) || value['interfaces'] === undefined)
        return false;
    return true;
}
function NetworkRequestFromJSON(json) {
    return NetworkRequestFromJSONTyped(json, false);
}
function NetworkRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'hostname': json['hostname'],
        'firewallEnabled': json['firewall_enabled'] == null ? undefined : json['firewall_enabled'],
        'interfaces': (json['interfaces'].map(NetworkInterfaceRequest_1.NetworkInterfaceRequestFromJSON)),
        'gateway': json['gateway'] == null ? undefined : json['gateway'],
    };
}
function NetworkRequestToJSON(json) {
    return NetworkRequestToJSONTyped(json, false);
}
function NetworkRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'hostname': value['hostname'],
        'firewall_enabled': value['firewallEnabled'],
        'interfaces': (value['interfaces'].map(NetworkInterfaceRequest_1.NetworkInterfaceRequestToJSON)),
        'gateway': value['gateway'],
    };
}
//# sourceMappingURL=NetworkRequest.js.map