StatusData class
A model representing the status data.
This class holds the details of a status, including its ID, current status flag, and the status text itself.
Parameters: id - The unique identifier of the status. isCurrentStatus - A boolean indicating if this is the current status. status - The text of the status.
Constructors
- StatusData({String? id, bool? isCurrentStatus, String? status})
- Initializes a new instance of the StatusData class.
-
StatusData.fromJson(Map<
String, dynamic> json) -
Creates a StatusData instance from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The unique identifier of the status.
getter/setter pair
- isCurrentStatus ↔ bool?
-
A boolean indicating if this is the current status.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
The text of the status.
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 StatusData to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited