/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "push_condition.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const PushCondition& pod) { QJsonObject _json; addToJson<>(_json, "kind", pod.kind); addToJson(_json, "key", pod.key); addToJson(_json, "pattern", pod.pattern); addToJson(_json, "is", pod.is); return _json; } PushCondition FromJson::operator()(const QJsonValue& jv) { const auto& _json = jv.toObject(); PushCondition result; result.kind = fromJson(_json.value("kind")); result.key = fromJson(_json.value("key")); result.pattern = fromJson(_json.value("pattern")); result.is = fromJson(_json.value("is")); return result; }