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