Page.fromJson constructor
Implementation
factory Page.fromJson(Map<String, dynamic> json) => Page(
text: json["text"] as String,
confidence: (json["confidence"] as num).toDouble(),
roi: (json["roi"] as List<dynamic>)
.map((it) => Point<double>(
((it as Map<String, dynamic>)["x"] as num).toDouble(),
((it)["y"] as num).toDouble()))
.toList(),
blocks: (json["blocks"] as List<dynamic>)
.map((it) => Block.fromJson(it as Map<String, dynamic>))
.toList(),
);