Skip to content

Berries

pokelance.models.abstract.utils.berries ⚓︎

BerryFlavorMap ⚓︎

Bases: BaseModel

Represents a berry flavor map.

Attributes:

Name Type Description
potency int

The potency of the referenced flavor for this berry.

flavor NamedResource

The referenced berry flavor.

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)

FlavorBerryMap ⚓︎

Bases: BaseModel

Represents a flavor berry map.

Attributes:

Name Type Description
potency int

The potency of the referenced berry for this flavor.

berry NamedResource

The referenced berry.

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)