toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> result = super.toJson();
  result[_jsonTagImageField] = imageField;
  result[_jsonTagCroppedPath] = croppedPath;
  result[_jsonTagRotation] = rotationDegrees;
  result[_jsonTagX1] = cropX1;
  result[_jsonTagY1] = cropY1;
  result[_jsonTagX2] = cropX2;
  result[_jsonTagY2] = cropY2;
  return result;
}