BarcodeSelectionSession.fromJSON constructor
BarcodeSelectionSession.fromJSON(
- Map<String, dynamic> json
)
Implementation
BarcodeSelectionSession.fromJSON(Map<String, dynamic> json)
: this._(
(json['newlySelectedBarcodes'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map((e) => Barcode.fromJSON(e))
.toList()
.cast<Barcode>(),
(json['newlyUnselectedBarcodes'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map((e) => LocalizedOnlyBarcode.fromJSON(e))
.toList()
.cast<Barcode>(),
(json['selectedBarcodes'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map((e) => LocalizedOnlyBarcode.fromJSON(e))
.toList()
.cast<Barcode>(),
(json['frameSequenceId'] as num).toInt());