toJson method

Map<String, dynamic> toJson()

Converts an instance of StatusData to a JSON map.

This method is used to serialize StatusData instances into a map structure that can easily be converted to JSON. This is useful for storing the instance in a database or sending it over a network.

Returns: A map representing the serialized form of the StatusData instance.

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "isCurrentStatus": isCurrentStatus,
      "status": status,
    };