/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "auth_data.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const AuthenticationData& pod) { QJsonObject jo = toJson(pod.authInfo); addParam<>(jo, QStringLiteral("type"), pod.type); addParam(jo, QStringLiteral("session"), pod.session); return jo; } AuthenticationData FromJsonObject::operator()(QJsonObject jo) const { AuthenticationData result; result.type = fromJson(jo.take("type"_ls)); result.session = fromJson(jo.take("session"_ls)); result.authInfo = fromJson>(jo); return result; }