toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> result = super.toJson();
  result[_jsonTagImagePath] = fullPath;
  result[_jsonTagRotation] = rotationDegrees;
  result[_jsonTagX1] = cropX1;
  result[_jsonTagY1] = cropY1;
  result[_jsonTagX2] = cropX2;
  result[_jsonTagY2] = cropY2;
  result[_jsonTagProofType] = proofType.offTag;
  result[_jsonTagEraserCoordinates] = eraserCoordinates;
  result[_jsonTagDisplaySnackbar] = displaySnackbar;
  result[_jsonTagReadyForPriceTagValidation] = readyForPriceTagValidation;
  return result;
}