protected function createResourcesFromJsonData(array $data, ResponseInterface $response, ApiResourceInterface $owner)
    {
        $items = [];
        $className = $this->resourceClass();

        foreach ($data as $item) {
            $items[] = new $className($owner->getApi(), $item, $owner);
        }

        return $items;
    }
protected function createResourcesFromJsonData(array $data, ResponseInterface $response, ApiResourceInterface $owner)
    {
        $items = [];
        $className = $this->resourceClass();

        foreach ($data as $item) {
            $items[] = new $className($owner->getApi(), $item, $owner);
        }

        return $items;
    }
protected function createResourcesFromJsonData ( array $ data , ResponseInterface $ response , ApiResourceInterface $ owner ) { $ items = [ ] ; $ className = $ this -> resourceClass ( ) ; foreach ( $ data as $ item ) { $ items [ ] = new $ className ( $ owner -> getApi ( ) , $ item , $ owner ) ; } return $ items ; }
Create resources list from given JSON response.

@param array                $data
@param ResponseInterface    $response
@param ApiResourceInterface $owner

@return array
Create resources list from given JSON response .