The RelationDefinition message provides detailed information about a specific relation.
Name | Type | Description | Notes |
---|---|---|---|
name | str | The name of the relation, which follows a specific string pattern and has a maximum byte size. | [optional] |
relation_references | List[RelationReference] | A list of references to other relations. | [optional] |
from permify.models.relation_definition import RelationDefinition
# TODO update the JSON string below
json = "{}"
# create an instance of RelationDefinition from a JSON string
relation_definition_instance = RelationDefinition.from_json(json)
# print the JSON string representation of the object
print(RelationDefinition.to_json())
# convert the object into a dict
relation_definition_dict = relation_definition_instance.to_dict()
# create an instance of RelationDefinition from a dict
relation_definition_from_dict = RelationDefinition.from_dict(relation_definition_dict)