chatMessageStatusDetailToJson function

String chatMessageStatusDetailToJson(
  1. ChatMessageStatusDetail data
)

Converts a ChatMessageStatusDetail instance to a JSON string.

This function takes a ChatMessageStatusDetail instance, serializes it into a JSON map using the toJson method, and then encodes the map as a JSON string.

data: The ChatMessageStatusDetail instance to serialize.

Returns a JSON string representation of the ChatMessageStatusDetail.

Implementation

String chatMessageStatusDetailToJson(ChatMessageStatusDetail data) =>
    json.encode(data.toJson());