One or more tags can be assigned to a function entity to facilitate grouping and searching.
Name | Type | Description | Notes |
---|---|---|---|
name | str | A string that references a tag | |
color | str | Color associated with the tag in an UI. |
from waylay.services.registry.models.tag import Tag
# TODO update the JSON string below
json = "{}"
# create an instance of Tag from a JSON string
tag_instance = Tag.from_json(json)
# print the JSON string representation of the object
print Tag.to_json()
# convert the object into a dict
tag_dict = tag_instance.to_dict()
# create an instance of Tag from a dict
tag_form_dict = tag.from_dict(tag_dict)