Source code for bungieapi.generated.components.schemas.user.models
# generated by update to not change manually
import dataclasses as dt
import typing as t
from bungieapi.json import to_json
[docs]@dt.dataclass(frozen=True)
class GetCredentialTypesForAccountResponse:
credential_as_string: t.Optional[str] = None
credential_display_name: t.Optional[str] = None
credential_type: t.Optional["BungieCredentialType"] = None
is_public: t.Optional[bool] = None
[docs] def to_json(self) -> t.Mapping[str, t.Any]:
return {
"credentialType": to_json(self.credential_type),
"credentialDisplayName": to_json(self.credential_display_name),
"isPublic": to_json(self.is_public),
"credentialAsString": to_json(self.credential_as_string),
}
# imported at the end to do not case circular imports for type annotations
from bungieapi.generated.components.schemas import BungieCredentialType # noqa: E402