User class abstract
Represents a Serverpod cloud customer user, invited or registered.
- Implemented types
Constructors
-
User({int? id, DateTime? createdAt, DateTime? updatedAt, DateTime? archivedAt, UserAccountStatus? accountStatus, String? userAuthId, required String email, List<
UserRoleMembership> ? memberships, UuidValue? ownerId, Owner? owner}) -
factory
-
User.fromJson(Map<
String, dynamic> jsonSerialization) -
factory
Properties
- accountStatus ↔ UserAccountStatus
-
The status of the user's account.
getter/setter pair
- archivedAt ↔ DateTime?
-
getter/setter pair
- createdAt ↔ DateTime
-
getter/setter pair
- email ↔ String
-
The email address of the user.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
The database id, set if the object has been inserted into the
database or if it has been fetched from the database. Otherwise,
the id will be null.
getter/setter pair
-
memberships
↔ List<
UserRoleMembership> ? -
The role memberships of this user.
getter/setter pair
- owner ↔ Owner?
-
The owner container for all projects and billing info managed by this user.
getter/setter pair
- ownerId ↔ UuidValue?
-
The owner id of the user.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ DateTime
-
getter/setter pair
- userAuthId ↔ String?
-
External user authentication id. Must be unique.
Not set for invitees.
getter/setter pair
Methods
-
copyWith(
{int? id, DateTime? createdAt, DateTime? updatedAt, DateTime? archivedAt, UserAccountStatus? accountStatus, String? userAuthId, String? email, List< UserRoleMembership> ? memberships, UuidValue? ownerId, Owner? owner}) → User - Returns a shallow copy of this User with some or all fields replaced by the given arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited