meta['rows'] = $params['rows'] ?? $model->labels(); $this->meta['baseUrl'] = $params['baseUrl'] ?? $model->table; $this->meta['params'] = $params['params'] ?? []; $this->meta['actions'] = $params['actions'] ?? []; $this->jsonStr = (new JSONCreator($this->meta, $model->toArray()))->getJson(); } public function getJson(): ?string { return $this->jsonStr; } }