BarcodeCaptureSession.fromJSON constructor 
    
      
      BarcodeCaptureSession.fromJSON(
 - Map<String, dynamic> eventJson
) 
    
    
  Implementation
  factory BarcodeCaptureSession.fromJSON(Map<String, dynamic> eventJson) {
  var json = jsonDecode(eventJson['session']);
  return BarcodeCaptureSession._(
    json['newlyRecognizedBarcode'] != null ? Barcode.fromJSON(json['newlyRecognizedBarcode']) : null,
    (json['newlyLocalizedBarcodes'] as List<dynamic>)
        .cast<Map<String, dynamic>>()
        .map((e) => LocalizedOnlyBarcode.fromJSON(e))
        .toList()
        .cast<LocalizedOnlyBarcode>(),
    (json['frameSequenceId'] as num).toInt(),
    eventJson['frameId'],
  );
}