why do we have to convert from list to map in dart code example
Example: dart list to map
var map1 = Map.fromIterable(list, key: (e) => e.name, value: (e) => e.age);
var map1 = Map.fromIterable(list, key: (e) => e.name, value: (e) => e.age);