/****************************************************************************** * 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, "content", pod.content); addParam(_json, "override", pod.override); addParam(_json, "room", pod.room); addParam(_json, "sender", pod.sender); addParam(_json, "underride", pod.underride); return _json; } PushRuleset FromJson::operator()(const QJsonValue& jv) { const auto& _json = jv.toObject(); PushRuleset result; result.content = fromJson>(_json.value("content")); result.override = fromJson>(_json.value("override")); result.room = fromJson>(_json.value("room")); result.sender = fromJson>(_json.value("sender")); result.underride = fromJson>(_json.value("underride")); return result; }