User class

Implementers
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

User({required String id, required String email, required String name, String? image, required DateTime createdAt, required DateTime updatedAt, bool? emailVerified, bool? twoFactorEnabled, String? username, String? displayUsername, bool? isAnonymous, String? phoneNumber, bool? phoneNumberVerified, String? role, bool? banned, String? banReason, DateTime? banExpires, Map<String, dynamic>? customProperties})
User.fromJson(Map<String, dynamic> json)
factory

Properties

banExpires → DateTime?
final
banned → bool?
final
banReason → String?
final
createdAt → DateTime
final
customProperties → Map<String, dynamic>?
Custom properties that don't fit in the standard model
final
displayUsername → String?
final
email → String
final
emailVerified → bool?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
image → String?
final
isAnonymous → bool?
final
name → String
final
phoneNumber → String?
final
phoneNumberVerified → bool?
final
role → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
twoFactorEnabled → bool?
final
updatedAt → DateTime
final
username → String?
final

Methods

getCustomProperty<T>(String key) → T?
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.
override

Operators

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