toJson method
Implementation
Map<String, dynamic> toJson() => {
'text': text,
'elements': elements.map((e) => e.toJson()).toList(),
'boundingBox': boundingBox != null
? {
'left': boundingBox!.left,
'top': boundingBox!.top,
'width': boundingBox!.width,
'height': boundingBox!.height,
}
: null,
'confidence': confidence,
'recognizedLanguage': recognizedLanguage,
};