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