aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/user.cpp
blob: 17d15a208fdf1d3b86283e2afaa88e8575f67c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "user.h"

using namespace Quotient;

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);
}