meta['columns'] = $params['columns'] ?? $model->labels(); // $this->meta['perPage'] = $params['perPage'] ?? 10; // $this->meta['currentPage'] = $params['currentPage'] ?? 1; // $this->meta['baseUrl'] = $params['baseUrl'] ?? $model->table; // $this->meta['params'] = $params['params'] ?? []; // $this->meta['actions'] = $params['actions'] ?? []; // // $this->jsonStr = (new JSONCreator($this->meta, $collection->toArray()))->getJson(); // } // // /** // * @return string|null // */ // public function getJson(): string|null // { // return $this->jsonStr; // } // //}