/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "push_ruleset.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const PushRuleset& pod) { QJsonObject _json; addToJson(_json, "content", pod.content); addToJson(_json, "override", pod.override); addToJson(_json, "room", pod.room); addToJson(_json, "sender", pod.sender); addToJson(_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; }