diff options
Diffstat (limited to 'lib/identity/definitions/sid.cpp')
-rw-r--r-- | lib/identity/definitions/sid.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/identity/definitions/sid.cpp b/lib/identity/definitions/sid.cpp new file mode 100644 index 00000000..443dbedf --- /dev/null +++ b/lib/identity/definitions/sid.cpp @@ -0,0 +1,24 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + +#include "sid.h" + +using namespace QMatrixClient; + +QJsonObject QMatrixClient::toJson(const Sid& pod) +{ + QJsonObject jo; + addParam<>(jo, QStringLiteral("sid"), pod.sid); + return jo; +} + +Sid FromJsonObject<Sid>::operator()(const QJsonObject& jo) const +{ + Sid result; + result.sid = + fromJson<QString>(jo.value("sid"_ls)); + + return result; +} + |