code: public function mapFromForm($value)
      {
          foreach ($this->options as $option) {
              if ((string) $option->getFormValue() === (string) $value) {
                  return $option->getRealValue();
              }
          }
  
          return null;
      }
docs: @param mixed $value
  
  @return mixed|null