// 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.

#pragma once

#include "apiutils.h"

namespace nymea::api {

class ModbusRtuAddModbusRtuMasterParams {
public:
    // wire: 'baudrate' (field)
    quint64 baudrate{};
    // wire: 'dataBits' (field)
    SerialPortDataBits dataBits{};
    // wire: 'numberOfRetries' (field)
    quint64 numberOfRetries{};
    // wire: 'parity' (field)
    SerialPortParity parity{};
    // wire: 'serialPort' (field)
    QString serialPort{};
    // wire: 'stopBits' (field)
    SerialPortStopBits stopBits{};
    // wire: 'timeout' (field)
    quint64 timeout{};

    static ModbusRtuAddModbusRtuMasterParams fromJson(const QJsonObject &object);
    QJsonObject toJson() const;
};

} // namespace nymea::api
