42 if (! jo.is_object()) { jo = json::object(); }
53 if (jo.contains(
"sid"s)) {
54 result.
sid = jo.at(
"sid"s);
56 if (jo.contains(
"submit_url"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_token_response.hpp:13
std::string sid
The session ID.
Definition: request_token_response.hpp:18
std::optional< std::string > submitUrl
An optional field containing a URL where the client must submit the validation token to,...
Definition: request_token_response.hpp:30
static void from_json(const json &jo, RequestTokenResponse &result)
Definition: request_token_response.hpp:50
static void to_json(json &jo, const RequestTokenResponse &pod)
Definition: request_token_response.hpp:40