Supporter
The signed-in supporter.
Class in sponsorkit.models.
from sponsorkit import SupporterAlso importable from sponsorkit.models.
@dataclass(frozen=True)
class Supporter:
...The signed-in supporter. id is pairwise: stable per (target set, first identity).
Constructor#
Supporter(id: str, identities: tuple[Identity, ...]) -> NoneInstances are immutable; every field below is a constructor parameter.
Fields#
id#
id: strPairwise supporter id: stable for this target set and first identity.
identities#
identities: tuple[Identity, ...]The provider accounts the supporter signed in with.
Methods#
from_dict()#
@classmethod
def from_dict(cls, d: Mapping[str, Any]) -> SupporterParse the JSON form.
to_dict()#
def to_dict(self) -> dict[str, Any]The JSON form.