5 #include <Quotient/converters.h>
15 QVariantHash additionalProperties{};
19 struct JsonObjectConverter<UserIdentifier> {
20 static void dumpTo(QJsonObject& jo,
const UserIdentifier& pod)
22 fillJson(jo, pod.additionalProperties);
23 addParam<>(jo,
"type"_L1, pod.type);
25 static void fillFrom(QJsonObject jo, UserIdentifier& pod)
27 fillFromJson(jo.take(
"type"_L1), pod.type);
28 fromJson(jo, pod.additionalProperties);