Tier
A provider tier.
Class in sponsorkit.models.
from sponsorkit import TierAlso importable from sponsorkit.models.
@dataclass(frozen=True)
class Tier:
...A provider tier.
Constructor#
Tier(id: str, name: str) -> NoneInstances are immutable; every field below is a constructor parameter.
Fields#
id#
id: strThe provider's tier id.
name#
name: strThe tier's display name.
Methods#
from_dict()#
@classmethod
def from_dict(cls, d: Mapping[str, Any]) -> TierParse the JSON form.
to_dict()#
def to_dict(self) -> dict[str, Any]The JSON form.