code: public function unserialize($data)
      {
          $_data = unserialize($data);
          $this->page = $_data['page'];
          $this->key = $_data['key'];
          $this->data = $_data['data'];
          $this->api = null;
          $this->endpoint = null;
          $this->pagination = array();
      }
docs: Construct a CanvasArray from its string representation
  
  The data in the unserialized CanvasArray is static and cannot be
  refreshed, as the CanvasPest API connection is _not_ serialized to
  preserve the security of API access tokens.
  
  @param string $data
  
  @return string
  
  @see http://php.net/manual/en/serializable.unserialize.php
  Serializable::unserialize()