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

namespace nymea::api {

ModbusRtuRemoveModbusRtuMasterParams ModbusRtuRemoveModbusRtuMasterParams::fromJson(const QJsonObject &object) {
    ModbusRtuRemoveModbusRtuMasterParams value;
    if (object.contains(QStringLiteral("modbusUuid"))) {
        value.modbusUuid = QUuid((object.value(QStringLiteral("modbusUuid"))).toString());
    }
    return value;
}

QJsonObject ModbusRtuRemoveModbusRtuMasterParams::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("modbusUuid"), QJsonValue((modbusUuid).toString()));
    return object;
}

} // namespace nymea::api
