public function transform()
    {
        if( ! $this->transformer) {
            return [];
        }

        $presentation = $this->transformer->transform($this->resource);

        return $this->transformToArray($presentation);
    }