aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/location.cpp
blob: 0a05402940408a520c538ed3f05f7b3ea3a5de60 (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 "location.h"

using namespace Quotient;

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

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