AuthResponseModel class
The AuthResponseModel
class represents a model for the authentication response.
Constructors
- AuthResponseModel({required UserModel user, required String token, MetaData? meta})
-
Creates a new instance of the
AuthResponseModel
class.const -
AuthResponseModel.fromJson(Map<
String, dynamic> json) -
Creates a new instance of the
AuthResponseModel
class from a JSON map.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- meta → MetaData?
-
Additional metadata associated with the authentication response.
final
-
props
→ List<
Object?> -
Returns a list of properties used for value comparison.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
Specifies whether the object should be stringified.
no setter
- token → String
-
The authentication token.
final
- user → UserModel
-
The user associated with the authentication response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
AuthResponseModel
instance to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited