public function getData()
    {
        if ($this->data instanceof Arrayable) {
            $this->data = $this->data->toArray();
        }

        if (!is_array($this->data)) {
            $this->data = null;
        }

        return $this->data;
    }