API Documentation for toMap.
Map<String, Object?> toMap() => <String, Object?>{ 'barcodes': barcodes, 'faces': faces.map((face) => face.toMap()).toList(growable: false), };