BarcodeItem.fromJson constructor

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

Implementation

factory BarcodeItem.fromJson(Map<String, dynamic> json) => BarcodeItem(
      type: (json["type"] != null
          ? BarcodeFormat.values.byName(json["type"] as String)
          : null),
      count: (json["count"] as int),
      text: json["text"] as String,
      textWithExtension: json["textWithExtension"] as String,
      rawBytes: uintListFromString(json["rawBytes"] as String),
      parsedDocument: (json["parsedDocument"] != null
          ? GenericDocument.fromJson(
              json["parsedDocument"] as Map<String, dynamic>)
          : null),
    );