API Reference
Guide
pokelance.models.abstract.utils.contests
ContestName
Bases: BaseModel
BaseModel
A contest name resource.
name
str
The name for this contest.
color
The color associated with this contest's name.
language
NamedResource
The language that this name is in.
to_dict()
Convert the model to a dict
Dict[str, Any]
The model as a dict.
pokelance/models/_base.py
12 13 14 15 16 17 18 19 20
def to_dict(self) -> t.Dict[str, t.Any]: """Convert the model to a dict Returns ------- typing.Dict[str, Any] The model as a dict. """ return attrs.asdict(self)