ExpectedBarcode.fromJson constructor

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

Implementation

factory ExpectedBarcode.fromJson(Map<String, dynamic> json) =>
    ExpectedBarcode(
      barcodeValue: json["barcodeValue"] as String,
      title: (json["title"] != null ? json["title"] as String : null),
      image: (json["image"] != null ? json["image"] as String : null),
      count: json.containsKey("count") ? (json["count"] as int) : 1,
    );