// 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 "modbusrtumodbusrtumasterchangednotificationparams.h"

namespace nymea::api {

ModbusRtuModbusRtuMasterChangedNotificationParams ModbusRtuModbusRtuMasterChangedNotificationParams::fromJson(const QJsonObject &object) {
    ModbusRtuModbusRtuMasterChangedNotificationParams value;
    if (object.contains(QStringLiteral("modbusRtuMaster"))) {
        value.modbusRtuMaster = ModbusRtuMaster::fromJson((object.value(QStringLiteral("modbusRtuMaster"))).toObject());
    }
    return value;
}

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

} // namespace nymea::api
