Context(root: dict = None)
Initializes a new instance of the class.
Arguments:
- root (dict): Spotify Web API JSON response in dictionary format, used to load object
attributes; otherwise, None to not load attributes.
External URLs for this context.
Href: str
A link to the Web API endpoint providing full details of the track.
Type: str
Object type, such as artist
, playlist
, album
or show
.
Example: computer
Uri: str
The Spotify URI for the context.
Example: spotify:album:2up3OPMp9Tb4dAKM2erWXQ
def
ToDictionary(self) -> dict:
Returns a dictionary representation of the class.
def
ToString(self) -> str:
Returns a displayable string representation of the class.