fromJson method
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;
}
}
}