diff options
Diffstat (limited to 'lib/csapi/definitions/user_identifier.cpp')
-rw-r--r-- | lib/csapi/definitions/user_identifier.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/csapi/definitions/user_identifier.cpp b/lib/csapi/definitions/user_identifier.cpp new file mode 100644 index 00000000..3d3acaba --- /dev/null +++ b/lib/csapi/definitions/user_identifier.cpp @@ -0,0 +1,26 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + +#include "user_identifier.h" + +using namespace QMatrixClient; + +QJsonObject QMatrixClient::toJson(const UserIdentifier& pod) +{ + QJsonObject _json = toJson(pod.additionalProperties); + addParam<>(_json, QStringLiteral("type"), pod.type); + return _json; +} + +UserIdentifier FromJson<UserIdentifier>::operator()(const QJsonValue& jv) +{ + auto _json = jv.toObject(); + UserIdentifier result; + result.type = + fromJson<QString>(_json.take("type"_ls)); + + result.additionalProperties = fromJson<QVariantHash>(_json); + return result; +} + |