public function parse(array $data, ParsingDispatcher $parsingDispatcher)
{
if (!array_key_exists('Destination', $data) || !is_array($data['Destination'])) {
throw new Exceptions\Parser("Missing or invalid 'Destination' element for RelationCreate.");
}
if (!array_key_exists('_href', $data['Destination'])) {
throw new Exceptions\Parser("Missing '_href' attribute for Destination element in RelationCreate.");
}
return $this->requestParser->parseHref($data['Destination']['_href'], 'contentId');
}