toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'captureMode': captureMode.index,
'canCaptureMultiplePhotos': canCaptureMultiplePhotos,
'cameraPosition': cameraPosition,
'cameraPhotoFlash': cameraPhotoFlash,
'cameraVideoTorch': cameraVideoTorch,
};
}