private RelationshipDataModel TransformContentTypeDefinitionToRelationship(ContentTypeDefinition contentTypeDefinition, string linkFromName, string linkToName)
        {
            var relationshipDataModel = new RelationshipDataModel
            {
                Id     = contentTypeDefinition.Name,
                Label  = contentTypeDefinition.DisplayName,
                Domain = linkFromName,
                Range  = linkToName,
            };

            return(relationshipDataModel);
        }
        private RelationshipDataModel TransformContentTypePartDefinitionToRelationship(ContentTypePartDefinition contentTypePartDefinition, string linkFromName, string linkToName)
        {
            var relationshipDataModel = new RelationshipDataModel
            {
                Id     = linkToName,
                Label  = contentTypePartDefinition.PartDefinition.GetSettings <ContentPartSettings>()?.Description ?? contentTypePartDefinition.Name,
                Domain = linkFromName,
                Range  = linkToName,
            };

            return(relationshipDataModel);
        }