User class
The signed-in user, as /api/auth/session and the user endpoints return them.
Parsed by hand, like every other response in this package. Every field being
nullable meant the generated parser could not produce the "Null is not a
subtype of String" failure the others did - but two casts inside it still
could: roles casts each element to String, and createdAt parses a date
without checking it is one. This is the most frequently parsed response in the
SDK, so it is the last place worth leaving an unchecked read.
- Implemented types
Constructors
Properties
- createdAt ↔ DateTime?
-
getter/setter pairoverride
-
data
↔ Map<
String, dynamic> ? -
getter/setter pair
- email ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pairoverride
-
roles
↔ List<
String> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ DateTime?
-
getter/setter pairoverride
- verified ↔ bool?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited