toJson method

  1. @override
Map<String, dynamic> toJson()
override

Returns a json representation of an instance of FirebaseObjectDetectorOptions.

Implementation

@override
Map<String, dynamic> toJson() => {
      'mode': mode.index,
      'type': type.name,
      'classify': classifyObjects,
      'multiple': multipleObjects,
      'modelName': modelName,
      'threshold': confidenceThreshold,
      'maxLabels': maximumLabelsPerObject,
    };