aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/user.cpp
blob: 8ba9232169c06b34e5457cf2912e18ae4384fc93 (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
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "user.h"

using namespace QMatrixClient;

void JsonObjectConverter<ThirdPartyUser>::dumpTo(
        QJsonObject& jo, const ThirdPartyUser& pod)
{
    addParam<>(jo, QStringLiteral("userid"), pod.userid);
    addParam<>(jo, QStringLiteral("protocol"), pod.protocol);
    addParam<>(jo, QStringLiteral("fields"), pod.fields);
}

void JsonObjectConverter<ThirdPartyUser>::fillFrom(
    const QJsonObject& jo, ThirdPartyUser& result)
{
    fromJson(jo.value("userid"_ls), result.userid);
    fromJson(jo.value("protocol"_ls), result.protocol);
    fromJson(jo.value("fields"_ls), result.fields);
}