RecognisedText.fromMap constructor

RecognisedText.fromMap(
  1. Map map
)

Implementation

factory RecognisedText.fromMap(Map<dynamic, dynamic> map) {
  var resText = map["text"];
  var textBlocks = <TextBlock>[];
  for (var block in map["blocks"]) {
    var textBlock = TextBlock.fromMap(block);
    textBlocks.add(textBlock);
  }
  return RecognisedText._(resText, textBlocks);
}