toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of ImageLabelerOptions.

Implementation

Map<String, dynamic> toJson() => {
      'confidenceThreshold': confidenceThreshold,
      'type': type.name,
    };