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