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: state_event_batch.hpp:13
EventList events
List of events.
Definition: state_event_batch.hpp:16
static void from_json(const json &jo, StateEventBatch &result)
Definition: state_event_batch.hpp:34
static void to_json(json &jo, const StateEventBatch &pod)
Definition: state_event_batch.hpp:26