fromJson method

dynamic fromJson(
  1. Map<String, dynamic> map
)

Implementation

fromJson(Map<String, dynamic> map) {
  name = map['event'] ?? '';
  data = map['data'] ?? {};
  broadcast = map['broadcast'] ?? {};
  for (var deKey in deeplyEncoded) {
    if (data.containsKey(deKey)) {
      var decoded = json.decode(data[deKey]);
      data[deKey] = decoded;
    }
  }
}