OcrData.fromJson constructor

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

Implementation

factory OcrData.fromJson(Map<String, dynamic> json) => OcrData(
      text: json["text"],
      path: json["path"] ?? "",
      orientation: json["orientation"] ?? 0,
      lines: List<OcrLine>.from((json["lines"] ?? []).map((x) => OcrLine.fromJson(x))),
    );