toJson method
Implementation
Map<String, dynamic> toJson() => {
'format': format,
'rawValue': rawValue,
'displayValue': displayValue ?? rawValue,
'boundingBox': boundingBox != null
? {
'left': boundingBox!.left,
'top': boundingBox!.top,
'width': boundingBox!.width,
'height': boundingBox!.height,
}
: null,
'corners': corners?.map((c) => {'x': c.dx, 'y': c.dy}).toList(),
};