40 if (! jo.is_object()) { jo = json::object(); }
51 if (jo.contains(
"id_server"s)) {
52 result.
idServer = jo.at(
"id_server"s);
54 if (jo.contains(
"id_access_token"s)) {
Definition: location.hpp:10
Definition: location.hpp:10
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:27
Definition: request_msisdn_validation.hpp:13
std::optional< std::string > idAccessToken
An access token previously registered with the identity server.
Definition: request_msisdn_validation.hpp:28
std::optional< std::string > idServer
The hostname of the identity server to communicate with.
Definition: request_msisdn_validation.hpp:21
Definition: request_msisdn_validation.hpp:13
static void to_json(json &jo, const MsisdnValidationData &pod)
Definition: request_msisdn_validation.hpp:38
static void from_json(const json &jo, MsisdnValidationData &result)
Definition: request_msisdn_validation.hpp:48