toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"landmarks": landmarks.map((e) => e.toJson()),
"rect": rect.toJson(),
"crop": _bytesToBase64(crop),
"rotationAngle": rotationAngle,
}.clearNulls();