User class

User model.

Annotations
  • @JsonSerializable.new()

Constructors

User({required String userId, required String username, required UserRole role})
User.fromJson(Map<String, dynamic> json)
factory

Properties

avatarUrl ↔ String?
getter/setter pair
createdAt ↔ DateTime
getter/setter pair
displayName ↔ String?
getter/setter pair
enabled ↔ bool
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
playerFilter ↔ List<String>
getter/setter pair
preferences ↔ Map<String, dynamic>
getter/setter pair
providerFilter ↔ List<String>
getter/setter pair
role ↔ UserRole
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId ↔ String
getter/setter pair
username ↔ String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited