User class

Describes an Nhost user.

Constructors

User({required String id, required String displayName, required String locale, required DateTime createdAt, required bool isAnonymous, required String defaultRole, required List<String> roles, required Map<String, Object?> metadata, String? email, Uri? avatarUrl})

Properties

avatarUrl Uri?
A Uri locating the user's avatar image, or null if none
final
createdAt DateTime
final
defaultRole String
final
displayName String
final
email String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
isAnonymous bool
final
locale String
final
metadata Map<String, Object?>
final
roles List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

fromJson(dynamic json) User