"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.instanceOfNetworkInterface = instanceOfNetworkInterface;
exports.NetworkInterfaceFromJSON = NetworkInterfaceFromJSON;
exports.NetworkInterfaceFromJSONTyped = NetworkInterfaceFromJSONTyped;
exports.NetworkInterfaceToJSON = NetworkInterfaceToJSON;
exports.NetworkInterfaceToJSONTyped = NetworkInterfaceToJSONTyped;
/**
 * Check if a given object implements the NetworkInterface interface.
 */
function instanceOfNetworkInterface(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('hardwareAddress' in value) || value['hardwareAddress'] === undefined)
        return false;
    return true;
}
function NetworkInterfaceFromJSON(json) {
    return NetworkInterfaceFromJSONTyped(json, false);
}
function NetworkInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'hardwareAddress': json['hardware_address'],
        'ipAddresses': json['ip_addresses'] == null ? undefined : json['ip_addresses'],
        'dnsServers': json['dns_servers'] == null ? undefined : json['dns_servers'],
    };
}
function NetworkInterfaceToJSON(json) {
    return NetworkInterfaceToJSONTyped(json, false);
}
function NetworkInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'hardware_address': value['hardwareAddress'],
        'ip_addresses': value['ipAddresses'],
        'dns_servers': value['dnsServers'],
    };
}
//# sourceMappingURL=NetworkInterface.js.map