Data class

Represents the data model for a user registration.

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 map into a Data object.
factory

Properties

config Config?
The user's configuration data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isExisting bool?
A flag indicating if the user already exists.
getter/setter pair
isProfileUpdated bool?
A flag indicating if the user's profile has been updated.
getter/setter pair
password String?
The user's password.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
The user's token.
getter/setter pair
username String?
The user's username.
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 object into a map.
toString() String
A string representation of this object.
inherited

Operators

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