toJson method

String toJson()

Converts a RealtimeMessage to a JSON String.

Implementation

String toJson() => json.encode(toMap());