// SPDX-License-Identifier: GPL-3.0-or-later

// This file is auto-generated by scripts/generate_nymea_api.py
// Any changes made here will be lost when the files are regenerated.
// Do not edit manually.

#include "networkmanagerenablewirelessnetworkingparams.h"

namespace nymea::api {

NetworkManagerEnableWirelessNetworkingParams NetworkManagerEnableWirelessNetworkingParams::fromJson(const QJsonObject &object) {
    NetworkManagerEnableWirelessNetworkingParams value;
    if (object.contains(QStringLiteral("enable"))) {
        value.enable = (object.value(QStringLiteral("enable"))).toBool();
    }
    return value;
}

QJsonObject NetworkManagerEnableWirelessNetworkingParams::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("enable"), QJsonValue(enable));
    return object;
}

} // namespace nymea::api
