# TextPatternScannerResult.fromJson constructor

TextPatternScannerResult.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory TextPatternScannerResult.fromJson(Map<String, dynamic> json) =>
        TextPatternScannerResult(
          rawText: json["rawText"] as String,
          wordBoxes: (json["wordBoxes"] as List<dynamic>)
              .map((it) => WordBox.fromJson(it as Map<String, dynamic>))
              .toList(),
          symbolBoxes: (json["symbolBoxes"] as List<dynamic>)
              .map((it) => SymbolBox.fromJson(it as Map<String, dynamic>))
              .toList(),
          confidence: json.containsKey("confidence")
              ? (json["confidence"] as num).toDouble()
              : 0.0,
          validationSuccessful: json.containsKey("validationSuccessful")
              ? (json["validationSuccessful"] as bool)
              : false,
        );