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

namespace nymea::api {

TagsTagAddedNotificationParams TagsTagAddedNotificationParams::fromJson(const QJsonObject &object) {
    TagsTagAddedNotificationParams value;
    if (object.contains(QStringLiteral("tag"))) {
        value.tag = Tag::fromJson((object.value(QStringLiteral("tag"))).toObject());
    }
    return value;
}

QJsonObject TagsTagAddedNotificationParams::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("tag"), QJsonValue((tag).toJson()));
    return object;
}

} // namespace nymea::api
