/**
  * Prepare page object
  *
  * @param array $data
  * @return \Magento\Framework\DataObject
  */
 protected function _prepareObject(array $data)
 {
     $object = new \Magento\Framework\DataObject();
     $object->setId($data[$this->getIdFieldName()]);
     $object->setUrl($data['url']);
     $object->setUpdatedAt($data['updated_at']);
     return $object;
 }
 /**
  * Prepare category
  *
  * @param array $categoryRow
  * @return \Magento\Framework\DataObject
  */
 protected function _prepareCategory(array $categoryRow)
 {
     $category = new \Magento\Framework\DataObject();
     $category->setId($categoryRow[$this->getIdFieldName()]);
     $categoryUrl = !empty($categoryRow['url']) ? $categoryRow['url'] : 'catalog/category/view/id/' . $category->getId();
     $category->setUrl($categoryUrl);
     $category->setUpdatedAt($categoryRow['updated_at']);
     return $category;
 }