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