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

namespace nymea::api {

ZigbeeRefreshBindingsResponse ZigbeeRefreshBindingsResponse::fromJson(const QJsonObject &object) {
    ZigbeeRefreshBindingsResponse value;
    if (object.contains(QStringLiteral("zigbeeError"))) {
        value.zigbeeError = parseZigbeeError(object.value(QStringLiteral("zigbeeError")));
    }
    return value;
}

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

} // namespace nymea::api
