SparkScanSession.fromJSON constructor

SparkScanSession.fromJSON(
  1. Map<String, dynamic> event
)

Implementation

factory SparkScanSession.fromJSON(Map<String, dynamic> event) {
  var json = jsonDecode(event['session']);
  return SparkScanSession._(
    json['newlyRecognizedBarcode'] != null ? Barcode.fromJSON(json['newlyRecognizedBarcode']) : null,
    (json['frameSequenceId'] as num).toInt(),
    event['frameId'],
  );
}