code: public function toArray() : array
      {
          $values = array();
          foreach ($this->getAllFieldsAliases() as $name) {
              $field = $this->{'field' . ucfirst($name)};
              $values[$name] = $field['value'];
          }
  
          return $values;
      }
docs: Get field values as associative array (alias => value).
  
  @return array values