mapListFromJson static method
Implementation
static Map<String, List<WSEvent>> mapListFromJson(dynamic json, {bool growable = false,}) {
final map = <String, List<WSEvent>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
for (final entry in json.entries) {
map[entry.key] = WSEvent.listFromJson(entry.value, growable: growable,);
}
}
return map;
}