src/AbstractApi.php
protected function hydrateOne($data)
    {
        if (empty($this->model) || empty($this->hydrator)) {
            return (object) $data;
        }

        $incoming = new \Incoming\Processor();

        return $incoming->process($data, new $this->model(), new $this->hydrator());
    }
protected function hydrateOne($data)
    {
        if (empty($this->model) || empty($this->hydrator)) {
            return (object) $data;
        }

        $incoming = new \Incoming\Processor();

        return $incoming->process($data, new $this->model(), new $this->hydrator());
    }
@param $data

@return mixed|object