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

namespace nymea::api {

IntegrationsEditThingResponse IntegrationsEditThingResponse::fromJson(const QJsonObject &object) {
    IntegrationsEditThingResponse value;
    if (object.contains(QStringLiteral("thingError"))) {
        value.thingError = parseThingError(object.value(QStringLiteral("thingError")));
    }
    return value;
}

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

} // namespace nymea::api
