/**
* @param string|null $prefix
* @param LinkInterface|null $link
*
* @return array|null|string
*/
private function getLinkRepresentation($prefix = null, LinkInterface $link = null)
{
return $link === null ? null : $this->getUrlRepresentation($link->isTreatAsHref() === true ? $link->getSubHref() : $prefix . $link->getSubHref(), $link->getMeta());
}