/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "push_ruleset.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const PushRuleset& pod) { QJsonObject _json; addParam(_json, QStringLiteral("content"), pod.content); addParam(_json, QStringLiteral("override"), pod.override); addParam(_json, QStringLiteral("room"), pod.room); addParam(_json, QStringLiteral("sender"), pod.sender); addParam(_json, QStringLiteral("underride"), pod.underride); return _json; } PushRuleset FromJson::operator()(const QJsonValue& jv) { const auto& _json = jv.toObject(); PushRuleset result; result.content = fromJson>(_json.value("content"_ls)); result.override = fromJson>(_json.value("override"_ls)); result.room = fromJson>(_json.value("room"_ls)); result.sender = fromJson>(_json.value("sender"_ls)); result.underride = fromJson>(_json.value("underride"_ls)); return result; }