BarcodeData.fromJson constructor

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

Implementation

factory BarcodeData.fromJson(Map<String, dynamic> json) => BarcodeData(
      path: json["path"] ?? "",
      orientation: json["orientation"] ?? 0,
      barcodes: List<BarcodeObject>.from((json["barcodes"] ?? []).map((x) => BarcodeObject.fromJson(x))),
    );