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