toJson method

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

Returns a json representation of an instance of FirebaseLabelerOption.

Implementation

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