// 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 ZigbeeBindingTableRecord {
public:
    // wire: 'clusterId' (field)
    quint64 clusterId{};
    // wire: 'destinationAddress' (optional)
    std::optional<QString> destinationAddress;
    // wire: 'destinationEndpointId' (optional)
    std::optional<quint64> destinationEndpointId;
    // wire: 'destinationGroupAddress' (optional)
    std::optional<quint64> destinationGroupAddress;
    // wire: 'sourceAddress' (field)
    QString sourceAddress{};
    // wire: 'sourceEndpointId' (field)
    quint64 sourceEndpointId{};

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

} // namespace nymea::api
