Go to the documentation of this file.
28 if (! jo.is_object()) { jo = json::object(); }
37 if (jo.contains(
"events"s)) {
38 result.events = jo.at(
"events"s);
Definition: event_batch.hpp:14
Definition: location.hpp:26
static void from_json(const json &jo, EventBatch &result)
Definition: event_batch.hpp:34
Definition: location.hpp:10
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:10
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
EventList events
List of events.
Definition: event_batch.hpp:20
static void to_json(json &jo, const EventBatch &pod)
Definition: event_batch.hpp:26
immer::flex_vector< Event > EventList
Definition: types.hpp:107