BarcodeScannerResult.fromJson constructor

BarcodeScannerResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BarcodeScannerResult.fromJson(Map<String, dynamic> json) =>
    BarcodeScannerResult(
      items: json.containsKey("items")
          ? (json["items"] as List<dynamic>)
              .map((it) => BarcodeItem.fromJson(it as Map<String, dynamic>))
              .toList()
          : [],
    );