BarcodeCaptureSession.fromJSON constructor
BarcodeCaptureSession.fromJSON(
- Map<String, dynamic> json
)
Implementation
BarcodeCaptureSession.fromJSON(Map<String, dynamic> json)
: this._(
json['newlyRecognizedBarcode'] != null ? Barcode.fromJSON(json['newlyRecognizedBarcode']) : null,
(json['newlyRecognizedBarcodes'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map((e) => Barcode.fromJSON(e))
.toList()
.cast<Barcode>(),
(json['newlyLocalizedBarcodes'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map((e) => LocalizedOnlyBarcode.fromJSON(e))
.toList()
.cast<LocalizedOnlyBarcode>(),
(json['frameSequenceId'] as num).toInt());