requireRelationships
Asserts that a JSON:API resource has a non-null relationships object.
This follows the same contract-based pattern as requireId, but for serializers that require relationships to be present.
Throws
SerializationException
if relationships is null.