code: public function match(
          ModelInterface $model = null,
          PropertyValueBag $input = null,
          PropertyInterface $property = null,
          LegendInterface $legend = null
      ) {
          if ($input && $input->hasPropertyValue($this->idProperty)) {
              $value = $input->getPropertyValue($this->idProperty);
          } elseif ($model) {
              $value = $model->getProperty($this->idProperty);
          } else {
              return false;
          }
  
          return $this->getTypeOfAttribute($value) === $this->getAttributeType();
      }
docs: {@inheritdoc}