Tier

A provider tier.

On this page

Class in sponsorkit.models.

from sponsorkit import Tier

Also importable from sponsorkit.models.

@dataclass(frozen=True)
class Tier:
    ...

A provider tier.

Constructor#

Tier(id: str, name: str) -> None

Instances are immutable; every field below is a constructor parameter.

Fields#

id#

id: str

The provider's tier id.

name#

name: str

The tier's display name.

Methods#

from_dict()#

@classmethod
def from_dict(cls, d: Mapping[str, Any]) -> Tier

Parse the JSON form.

to_dict()#

def to_dict(self) -> dict[str, Any]

The JSON form.