Account
Uniquely identifies an account and its associated identity.
The identity is what a participant logs in with, e.g., an EmailAccountIdentity.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
Account.fromJson
Account
- String? id,
- required AccountIdentity identity,
Account.withEmailIdentity
- String emailAddress
Create a new Account uniquely identified by the specified emailAddress.
Account.withUsernameIdentity
- String username
Create a new Account uniquely identified by the specified username.
Properties
id
getter/setter pair
Unique id of this account. A random UUID (v4) if not specified.
identity
getter/setter pair
Identity associated with this account.
Methods
hasSameIdentity
Determines whether this account has the same identity as otherAccount.