UserModel class
Represents a user in the Form.io system, primarily for authentication.
This model is used for logging in, storing user credentials, and handling JWT tokens returned from the Form.io authentication endpoint.
Constructors
Properties
- email → String
-
User's email address used for login.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- password → String
-
User's password used for login.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
JWT token issued upon successful authentication.
final
- userId → String?
-
Unique ID of the user (if available).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLoginJson(
) → Map< String, dynamic> - Converts the user credentials into a JSON-compatible map for login.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited