Data class

Represents the data associated with a user.

Constructors

Data({String? token, String? username, String? password, bool? isExisting, bool? isProfileUpdated, Config? config})
Initializes a new instance of the Data class.
Data.fromJson(Map<String, dynamic> json)
Converts a JSON object into a Data instance.
factory

Properties

config Config?
Additional configuration data associated with the user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isExisting bool?
A boolean indicating if the user exists.
getter/setter pair
isProfileUpdated bool?
A boolean indicating if the user's profile has been updated.
getter/setter pair
password String?
The password of the user.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
The token associated with the user.
getter/setter pair
username String?
The username of the user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a Data instance into a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited