toJson method

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

Returns a json representation of an instance of LocalObjectDetectorOptions.

Implementation

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