keepMeInformedOnBids = $keepMeInformedOnBids; $this->contactForPropertyValuation = $contactForPropertyValuation; $this->contactForEconomicalAdvice = $contactForEconomicalAdvice; } public function toPostParams(): array { $arr = []; foreach (array_keys(static::getPostParams(true)) as $key) { $arr[$key] = !is_null($this->{$key}) ? $this->{$key} : false; } return $arr; } }