BarcodeData.fromJson constructor

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

Creates a new instance of BarcodeData from a JSON object.

The json parameter must include the keys 'data' and 'type'.

Implementation

BarcodeData.fromJson(Map<String, dynamic> json) {
  data = json['data'];
  type = json['type'];
}