1/******************************************************************************
2 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3 */
4
5#pragma once
6
7#include <Quotient/converters.h>
8
9namespace Quotient {
10/// Identification information for a user
11struct UserIdentifier {
12 /// The type of identification. See [Identifier
13 /// types](/client-server-api/#identifier-types) for supported values and
14 /// additional property descriptions.
15 QString type;
16
17 /// Identification information for a user
18 QVariantHash additionalProperties{};
19};
20
21template <>
22struct JsonObjectConverter<UserIdentifier> {
23 static void dumpTo(QJsonObject& jo, const UserIdentifier& pod)
24 {
25 fillJson(json&: jo, data: pod.additionalProperties);
26 addParam<>(container&: jo, QStringLiteral("type"), value: pod.type);
27 }
28 static void fillFrom(QJsonObject jo, UserIdentifier& pod)
29 {
30 fillFromJson(jv: jo.take(key: "type"_ls), pod&: pod.type);
31 fromJson(json: jo, pod&: pod.additionalProperties);
32 }
33};
34
35} // namespace Quotient
36