libkazv
Loading...
Searching...
No Matches
user_identifier.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3 */
4
5#pragma once
6
7#include "types.hpp"
8
9
10namespace Kazv::Api {
13{
14
16 std::string type;
17
20};
21
22}
23namespace nlohmann
24{
25using namespace Kazv;
26using namespace Kazv::Api;
27template<>
28struct adl_serializer<UserIdentifier> {
29 static void to_json(json& jo, const UserIdentifier &pod)
30 {
31 if (! jo.is_object()) { jo = json::object(); }
32
34 jo["type"s] = pod.type;
35
36 }
37 static void from_json(const json &jo, UserIdentifier& result)
38 {
39
40 if (jo.contains("type"s)) {
41 result.type = jo.at("type"s);
42 }
43 result.additionalProperties = jo;
44 }
45};
46 }
47
48 namespace Kazv::Api
49 {
50} // namespace Kazv::Api
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
void addPropertyMapToJson(json &j, MapT &&arg)
Definition types.hpp:91
nlohmann::json json
Definition jsonwrap.hpp:20
Definition location.hpp:27
Identification information for a user.
Definition user_identifier.hpp:13
std::string type
The type of identification. See Identifier types for supported values and additional property descrip...
Definition user_identifier.hpp:16
JsonWrap additionalProperties
Identification information for a user.
Definition user_identifier.hpp:19
static void from_json(const json &jo, UserIdentifier &result)
Definition user_identifier.hpp:37
static void to_json(json &jo, const UserIdentifier &pod)
Definition user_identifier.hpp:29