messageDeliveredStatusToJson function
Converts a MessageStatusDetail object to a JSON string.
This function takes a MessageStatusDetail object and encodes it into a JSON string. It is useful for serializing the message delivery status details to store or transmit as a string.
Parameters:
data
- The MessageStatusDetail object to be converted to a JSON string.
Returns: A JSON string representation of the MessageStatusDetail object.
Implementation
String messageDeliveredStatusToJson(MessageStatusDetail data) =>
json.encode(data);