BarcodeData.fromJson constructor

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

Implementation

factory BarcodeData.fromJson(Map<String, dynamic> json) {
  return BarcodeData(
    code: json['codeId'],
    information: (json['information'] as List<dynamic>?)
        ?.map((e) => BarcodeInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}