convertBoxesList static method
Converts detection boxes from dynamic format to typed format.
This method centralizes the box conversion logic that was duplicated across multiple files, particularly in result processing.
boxes The list of dynamic box data
Returns a list of properly typed box maps
Implementation
static List<Map<String, dynamic>> convertBoxesList(List<dynamic> boxes) {
return boxes.whereType<Map>().map((item) {
return convertToTypedMap(item);
}).toList();
}