code: public function jsonSerialize(): array
      {
          return [
              'sys' => $this->sys,
              'name' => $this->name,
              'description' => $this->description,
              'displayField' => $this->displayField,
              'fields' => \array_values($this->fields),
          ];
      }
docs: {@inheritdoc}