User class

Annotations
  • @JsonSerializable.new()

Constructors

User({String username = '', String userID = '', String? firstName, String? middleName, String? familyName, String? preferredName, String emailAddress = '', bool emailAddressVerified = false, String mobilePhone = '', bool mobilePhoneVerified = false, String defaultOrg = '', String defaultSpace = '', String? profilePictureUrl, bool rememberFor24h = false, bool enableBiometric = false, bool enableMFA = false, bool enableTOTP = false, Map<String, dynamic> userProfile = const {}})
const
User.fromJson(Map<String, dynamic> json)
factory

Properties

defaultOrg → String
final
defaultSpace → String
final
emailAddress → String
final
emailAddressVerified → bool
final
enableBiometric → bool
final
enableMFA → bool
final
enableTOTP → bool
final
familyName → String?
final
firstName → String?
final
hashCode → int
The hash code for this object.
no setterinherited
initials → String
no setter
isValid → bool
no setter
middleName → String?
final
mobilePhone → String
final
mobilePhoneVerified → bool
final
name → String
no setter
preferredName → String?
final
profilePictureUrl → String?
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
rememberFor24h → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → UserStatus
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
userID → String
final
username → String
final
userProfile → Map<String, dynamic>
final

Methods

copy() → User
copyWith({String? username, String? userID, String? firstName, String? middleName, String? familyName, String? preferredName, String? emailAddress, bool? emailAddressVerified, String? mobilePhone, bool? mobilePhoneVerified, String? profilePictureUrl, String? defaultOrg, String? defaultSpace, bool? rememberFor24h, bool? enableBiometric, bool? enableMFA, bool? enableTOTP, Map<String, String?> userProfile = const {}}) → User
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