BarcodeCountCaptureListSession.fromJSON constructor
BarcodeCountCaptureListSession.fromJSON(
- Map<String, dynamic> json
)
Implementation
factory BarcodeCountCaptureListSession.fromJSON(Map<String, dynamic> json) {
var correctBarcodes = (json['correctBarcodes'] as List)
.map((correctBarcodesJSON) => TrackedBarcode.fromJSON(correctBarcodesJSON, sessionFrameSequenceId: 0))
.toList();
var wrongBarcodes = (json['wrongBarcodes'] as List)
.map((wrongBarcodesJSON) => TrackedBarcode.fromJSON(wrongBarcodesJSON, sessionFrameSequenceId: 0))
.toList();
var missingBarcodes = (json['missingBarcodes'] as List)
.map((missingBarcodesJSON) => TargetBarcode.fromJSON(missingBarcodesJSON))
.toList();
var additionalBarcodes = (json['additionalBarcodes'] as List)
.map((additionalBarcodesJSON) => Barcode.fromJSON(additionalBarcodesJSON))
.toList();
return BarcodeCountCaptureListSession._(correctBarcodes, wrongBarcodes, missingBarcodes, additionalBarcodes);
}