aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/auth_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/auth_data.cpp')
-rw-r--r--lib/csapi/definitions/auth_data.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/csapi/definitions/auth_data.cpp b/lib/csapi/definitions/auth_data.cpp
deleted file mode 100644
index f8639432..00000000
--- a/lib/csapi/definitions/auth_data.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/******************************************************************************
- * 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<IfNotEmpty>(jo, QStringLiteral("session"), pod.session);
- return jo;
-}
-
-AuthenticationData FromJsonObject<AuthenticationData>::operator()(QJsonObject jo) const
-{
- AuthenticationData result;
- result.type =
- fromJson<QString>(jo.take("type"_ls));
- result.session =
- fromJson<QString>(jo.take("session"_ls));
-
- result.authInfo = fromJson<QHash<QString, QJsonObject>>(jo);
- return result;
-}
-