Event constructor

Event(
  1. String payload
)

Implementation

Event(String payload) {
  data = jsonDecode(payload);
}