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