toJson method
Converts the CameraInitializedEvent instance into a Map instance that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() => <String, Object>{
'cameraId': cameraId,
'previewWidth': previewWidth,
'previewHeight': previewHeight,
'exposureMode': serializeExposureMode(exposureMode),
'exposurePointSupported': exposurePointSupported,
'focusMode': serializeFocusMode(focusMode),
'focusPointSupported': focusPointSupported,
};