28 if (! jo.is_object()) { jo = json::object(); }
37 if (jo.contains(
"events"s)) {
38 result.
events = jo.at(
"events"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
immer::flex_vector< Event > EventList
Definition: types.hpp:107
Definition: location.hpp:27
Definition: event_batch.hpp:13
EventList events
List of events.
Definition: event_batch.hpp:16
static void to_json(json &jo, const EventBatch &pod)
Definition: event_batch.hpp:26
static void from_json(const json &jo, EventBatch &result)
Definition: event_batch.hpp:34