Go to the documentation of this file.
14 struct DiscoveryInformation
38 if (! jo.is_object()) { jo = json::object(); }
41 jo[
"m.homeserver"s] = pod.homeserver;
49 if (jo.contains(
"m.homeserver"s)) {
50 result.homeserver = jo.at(
"m.homeserver"s);
52 if (jo.contains(
"m.identity_server"s)) {
53 result.identityServer = jo.at(
"m.identity_server"s);
55 result.additionalProperties = jo;
Definition: location.hpp:26
Definition: location.hpp:10
void addPropertyMapToJson(json &j, MapT &&arg)
Definition: types.hpp:91
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:10
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80