// 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 RuleActionParam {
public:
    // wire: 'eventParamTypeId' (optional)
    std::optional<QUuid> eventParamTypeId;
    // wire: 'eventTypeId' (optional)
    std::optional<QUuid> eventTypeId;
    // wire: 'paramName' (optional)
    std::optional<QString> paramName;
    // wire: 'paramTypeId' (optional)
    std::optional<QUuid> paramTypeId;
    // wire: 'stateThingId' (optional)
    std::optional<QUuid> stateThingId;
    // wire: 'stateTypeId' (optional)
    std::optional<QUuid> stateTypeId;
    // wire: 'value' (optional)
    std::optional<QJsonValue> value;

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

} // namespace nymea::api
