relationship property

Relationship? get relationship

Implementation

Relationship? get relationship =>
    isRelationship ? data as Relationship : null;