public function convertResponse($response, $serviceResource)
    {
        $resourceName = substr($serviceResource, 0, -2);
        return $this->_convertResponseToModel($response, $resourceName);
    }
public function convertResponse($response, $serviceResource)
    {
        $resourceName = substr($serviceResource, 0, -2);
        return $this->_convertResponseToModel($response, $resourceName);
    }
public function convertResponse ( $ response , $ serviceResource ) { $ resourceName = substr ( $ serviceResource , 0 , - 2 ) ; return $ this -> _convertResponseToModel ( $ response , $ resourceName ) ; }
Converts a response to a model
@param array $response
@param string $serviceResource
@return Base|Error
Converts a response to a model