convertToMapOfLists static method
Implementation
static Map<String, List<dynamic>> convertToMapOfLists(Map<String, dynamic> map) {
return map.map((key, value) {
if (value is List) {
return MapEntry(key, value);
} else {
throw Exception('Value for key ${key} is not a List');
}
});
}