toMap method

Map<String, Object?> toMap()

Converts this object to a platform-channel map.

Implementation

Map<String, Object?> toMap() => <String, Object?>{
      'lens': lens.name,
      'fps': fps.name,
      'sessionPreset': sessionPreset.name,
      'enableVideoStabilization': enableVideoStabilization,
      'imageFormat': imageFormat.name,
      'videoCodec': videoCodec.name,
      'videoBitrate': videoBitrate,
      'visionPerformanceMode': visionPerformanceMode.name,
      'manualControls': manualControls,
    };