convertMapsList static method
Converts a list of dynamic maps to a list of typed maps.
This method handles the common pattern of converting lists of maps that was repeated in detection result processing.
maps The list of dynamic maps to convert
Returns a list of properly typed Map<String, dynamic>
Implementation
static List<Map<String, dynamic>> convertMapsList(List<dynamic> maps) {
return maps.whereType<Map>().map((item) {
return convertToTypedMap(item);
}).toList();
}