CameraResolutionChangedEvent.fromJson constructor

CameraResolutionChangedEvent.fromJson(
  1. Map<String, dynamic> json
)

Converts the supplied Map to an instance of the CameraResolutionChangedEvent class.

Implementation

CameraResolutionChangedEvent.fromJson(Map<String, dynamic> json)
    : captureWidth = json['captureWidth']! as double,
      captureHeight = json['captureHeight']! as double,
      super(json['cameraId']! as int);