31 if (! jo.is_object()) { jo = json::object(); }
34 jo[
"type"s] = pod.
type;
40 if (jo.contains(
"type"s)) {
41 result.
type = jo.at(
"type"s);
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