SessionResponse class abstract
- Annotations
-
- @freezed
Constructors
- SessionResponse({required Session session, required User user, String? error, bool? isRegister, bool? needsRefresh})
-
constfactory
-
SessionResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $SessionResponseCopyWith<
SessionResponse> -
Create a copy of SessionResponse
with the given fields replaced by the non-null parameter values.
no setterinherited
- error → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRegister → bool?
-
no setterinherited
- needsRefresh → bool?
-
Set by a server running
deferSessionRefresh: the read-only GET could not extend the session, so the client must POST to refresh it. Handled transparently by BetterAuthFlutter.refreshSession.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → Session
-
no setterinherited
- user → User
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this SessionResponse to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited