blob: ca3342364f94ee3bff4f5c0e08d71d89123f9541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include "user.h"
using namespace QMatrixClient;
QJsonObject QMatrixClient::toJson(const ThirdPartyUser& pod)
{
QJsonObject jo;
addParam<>(jo, QStringLiteral("userid"), pod.userid);
addParam<>(jo, QStringLiteral("protocol"), pod.protocol);
addParam<>(jo, QStringLiteral("fields"), pod.fields);
return jo;
}
ThirdPartyUser FromJsonObject<ThirdPartyUser>::operator()(const QJsonObject& jo) const
{
ThirdPartyUser result;
result.userid =
fromJson<QString>(jo.value("userid"_ls));
result.protocol =
fromJson<QString>(jo.value("protocol"_ls));
result.fields =
fromJson<QJsonObject>(jo.value("fields"_ls));
return result;
}
|