toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'detections': detections.map((detection) => detection.toMap()).toList(),
    'annotatedImage': annotatedImage,
    'processingTimeMs': processingTimeMs,
  };
}