statusToJson function

String statusToJson(
  1. Status data
)

Converts a Status object into a JSON string.

This function takes the provided Status object, converts it to a JSON map using the toJson method, and then encodes the map as a JSON string.

data: The Status object to be converted.

Returns a JSON string representation of the Status.

Implementation

String statusToJson(Status data) => json.encode(data.toJson());