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

#include "user_identifier.h"

using namespace Quotient;

void JsonObjectConverter<UserIdentifier>::dumpTo(QJsonObject& jo,
                                                 const UserIdentifier& pod)
{
    fillJson(jo, pod.additionalProperties);
    addParam<>(jo, QStringLiteral("type"), pod.type);
}

void JsonObjectConverter<UserIdentifier>::fillFrom(QJsonObject jo,
                                                   UserIdentifier& result)
{
    fromJson(jo.take("type"_ls), result.type);
    fromJson(jo, result.additionalProperties);
}