toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of FaceDetectorOptions.

Implementation

Map<String, dynamic> toJson() => {
      'enableClassification': enableClassification,
      'enableLandmarks': enableLandmarks,
      'enableContours': enableContours,
      'enableTracking': enableTracking,
      'minFaceSize': minFaceSize,
      'mode': performanceMode.name,
    };