Skip to content

Games

pokelance.models.abstract.utils.games ⚓︎

PokemonEntry ⚓︎

Bases: BaseModel

A pokemon entry resource.

Attributes:

Name Type Description
entry_number int

The index of this Pokémon species entry within the Pokédex.

pokemon_species NamedResource

The Pokémon species being encountered.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
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)