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