BarcodeObject.fromJson constructor

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

Implementation

factory BarcodeObject.fromJson(Map<String, dynamic> json) => BarcodeObject(
      value: json["value"],
      rawValue: json["rawValue"],
      typeId: json["type"],
      cornerPoints: List<OcrPoint>.from((json["cornerPoints"] ?? json["b"] ?? []).map((x) => OcrPoint.fromJson(x))),
    );