Skip to content

Link

Link between two objects. Each of them represented as a unique pair of ID (accession) and unique type.

Properties

Name Type Description Notes
first_id str Object ID (accession) (e.g. accession of study) [optional]
first_type str Type of the object (e.g. study) [optional]
second_id str Object ID (accession) (e.g. accession of study) [optional]
second_type str Type of the object (e.g. study) [optional]

Example

from odm_api.models.link import Link

# TODO update the JSON string below
json = "{}"
# create an instance of Link from a JSON string
link_instance = Link.from_json(json)
# print the JSON string representation of the object
print(Link.to_json())

# convert the object into a dict
link_dict = link_instance.to_dict()
# create an instance of Link from a dict
link_from_dict = Link.from_dict(link_dict)
[Back to Model list] [Back to API list] [Back to README]