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