Barcode.fromJson constructor

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

Implementation

factory Barcode.fromJson(Map<String, dynamic> json) {
  return Barcode(
    rawValue: json['raw_value'],
    displayValue: json['display_value'],
    valueType: BarcodeValueTypeCode.fromCode(json['value_type']),
    format: BarcodeFormatCode.fromCode(json['format']),
  );
}