/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "client_device.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const Device& pod) { QJsonObject _json; addToJson<>(_json, "device_id", pod.deviceId); addToJson(_json, "display_name", pod.displayName); addToJson(_json, "last_seen_ip", pod.lastSeenIp); addToJson(_json, "last_seen_ts", pod.lastSeenTs); return _json; } Device FromJson::operator()(const QJsonValue& jv) { const auto& _json = jv.toObject(); Device result; result.deviceId = fromJson(_json.value("device_id")); result.displayName = fromJson(_json.value("display_name")); result.lastSeenIp = fromJson(_json.value("last_seen_ip")); result.lastSeenTs = fromJson(_json.value("last_seen_ts")); return result; }