API Reference > imodeljs-common > Entities > RelatedElement RelatedElement Class The Id and relationship class of an Element that is somehow related to another Element Extended by TypeDefinition Implements RelatedElementProps Methods Name Description constructor(props: RelatedElementProps): RelatedElement toJSON(): RelatedElementProps fromJSON(json?: RelatedElementProps): undefined | RelatedElement Static idFromJson(json: any): string Static Accept the value of a navigation property that might be in the shortened format of just an id or might be in the full RelatedElement format. Properties Name Type Description id Readonly string The Id of the element to which this element is related. none StaticReadonly RelatedElement Used to null out an existing navigation relationship. relClassName Readonly undefined | string The full className of the relationship class. Defined in core/common/src/ElementProps.ts Line 59 Last Updated: 12 June, 2024