code: public function jsonSerialize(): array
      {
          $locale = [
              'sys' => $this->sys,
              'code' => $this->code,
              'default' => $this->default,
              'name' => $this->name,
              'fallbackCode' => $this->fallbackCode,
          ];
  
          return $locale;
      }
docs: {@inheritdoc}