diff --git a/packages/google_mlkit_object_detection/lib/src/object_detector.dart b/packages/google_mlkit_object_detection/lib/src/object_detector.dart index 5358ea8c..1c3c9429 100644 --- a/packages/google_mlkit_object_detection/lib/src/object_detector.dart +++ b/packages/google_mlkit_object_detection/lib/src/object_detector.dart @@ -194,14 +194,14 @@ class DetectedObject { /// Returns an instance of [DetectedObject] from a given [json]. factory DetectedObject.fromJson(Map json) { - final rect = RectJson.fromJson(json['rect']); + final boundingBox = RectJson.fromJson(json['rect']); final trackingId = json['trackingId']; final labels =