Subject represents an entity subject with a type, an identifier, and a relation.
Name | Type | Description | Notes |
---|---|---|---|
type | str | [optional] | |
id | str | [optional] | |
relation | str | [optional] |
from permify.models.subject import Subject
# TODO update the JSON string below
json = "{}"
# create an instance of Subject from a JSON string
subject_instance = Subject.from_json(json)
# print the JSON string representation of the object
print(Subject.to_json())
# convert the object into a dict
subject_dict = subject_instance.to_dict()
# create an instance of Subject from a dict
subject_from_dict = Subject.from_dict(subject_dict)