fromJson static method

Barcode fromJson(
  1. JsonObject json
)

Implementation

static Barcode fromJson(JsonObject json) => Barcode(
      text: json['text'],
      rawBytes: json['rawBytes'],
      barcodeFormat: BarcodeFormat.values.fromName(json['barcodeFormat'].toString().toLowerCase())!,
    );