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

namespace nymea::api {

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

QJsonObject ZigbeeRemoveNodeParams::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("ieeeAddress"), QJsonValue(ieeeAddress));
    object.insert(QStringLiteral("networkUuid"), QJsonValue((networkUuid).toString()));
    return object;
}

} // namespace nymea::api
