```
$serializedLink = array_merge($serializedLink, $link->getRelationAttributes());
```