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

namespace nymea::api {

TagsRemoveTagResponse TagsRemoveTagResponse::fromJson(const QJsonObject &object) {
    TagsRemoveTagResponse value;
    if (object.contains(QStringLiteral("tagError"))) {
        value.tagError = parseTagError(object.value(QStringLiteral("tagError")));
    }
    return value;
}

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

} // namespace nymea::api
