UserList class
Represents a list of user profiles.
This class holds a list of ProfileDetails representing individual user profiles, and a status flag indicating the success or failure of data retrieval.
Parameters: data - A list of ProfileDetails objects representing user profiles. status - A boolean flag indicating the success or failure of data retrieval.
Constructors
-
UserList.new({List<
ProfileDetails> ? data, bool? status}) - Initializes a new instance of the UserList class.
-
UserList.fromJson(Map<
String, dynamic> json) -
Creates a UserList instance from a JSON map.
factory
Properties
-
data
↔ List<
ProfileDetails> ? -
A list of ProfileDetails objects representing user profiles.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ bool?
-
A boolean flag indicating the success or failure of data retrieval.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of UserList to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited