EventCallback constructor

EventCallback(
  1. String event,
  2. String payload
)

Implementation

EventCallback(String event, String payload) {
  name = event;
  data = jsonDecode(payload);
}