StringResult constructor

StringResult(
  1. Map<String, dynamic> nativeStringResult
)

Represents the multi-alphabet string result extracted from the OCR. The result contains the extracted strings, their locations, and the sides of the extracted strings.

Implementation

StringResult(Map<String, dynamic> nativeStringResult) {
  value = nativeStringResult['value'];
  latin = nativeStringResult['latin'];
  arabic = nativeStringResult['arabic'];
  cyrillic = nativeStringResult['cyrillic'];
  greek = nativeStringResult['greek'];
  location =
      nativeStringResult['location'] != null
          ? Location(
            Map<String, dynamic>.from(nativeStringResult['location']),
          )
          : null;
  side =
      nativeStringResult['side'] != null
          ? Side(Map<String, dynamic>.from(nativeStringResult['side']))
          : null;
}