OcrLine.fromJson constructor

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

Implementation

factory OcrLine.fromJson(Map<String, dynamic> json) => OcrLine(
  text: json["text"]??json["a"]??"",
  cornerPoints: List<OcrPoint>.from((json["cornerPoints"]??json["b"]??[]).map((x) => OcrPoint.fromJson(x))),
);