VideoRecordedEvent.fromJson constructor
Converts the supplied Map to an instance of the VideoRecordedEvent class.
Implementation
VideoRecordedEvent.fromJson(Map<String, dynamic> json)
: file = XFile(json['path']! as String),
maxVideoDuration = json['maxVideoDuration'] != null
? Duration(milliseconds: json['maxVideoDuration'] as int)
: null,
super(json['cameraId']! as int);