CameraInitializedEvent.fromJson constructor
Converts the supplied Map to an instance of the CameraInitializedEvent class.
Implementation
CameraInitializedEvent.fromJson(Map<String, dynamic> json)
: previewWidth = json['previewWidth']! as double,
previewHeight = json['previewHeight']! as double,
exposureMode = deserializeExposureMode(json['exposureMode']! as String),
exposurePointSupported =
(json['exposurePointSupported'] as bool?) ?? false,
focusMode = deserializeFocusMode(json['focusMode']! as String),
focusPointSupported = (json['focusPointSupported'] as bool?) ?? false,
super(json['cameraId']! as int);