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