/**
  * @param \Generated\Shared\Transfer\DiscountCalculatorTransfer|null $value
  *
  * @return \Generated\Shared\Transfer\DiscountCalculatorTransfer|null
  */
 public function reverseTransform($value)
 {
     if (!$value || !$value->getCalculatorPlugin()) {
         return null;
     }
     $calculatorPlugin = $this->getCalculatorPlugin($value->getCalculatorPlugin());
     $transformedAmount = $calculatorPlugin->transformForPersistence($value->getAmount());
     $value->setAmount($transformedAmount);
     return $value;
 }