public function aujaSerialize() {
        $result = array();

        $result['type'] = $this->getType();
        $result[$this->getType()] = $this->basicSerialize();

        if ($this->nextPageUrl != null || $this->totalPageUrl != null) {
            $result['paging'] = array();
            if ($this->nextPageUrl != null) {
                $result['paging']['next'] = $this->nextPageUrl;
            }
            if ($this->totalPageUrl != null) {
                $result['paging']['total'] = $this->totalPageUrl;
            }
        }

        return $result;
    }