toJson method

String toJson()

Encodes this message to a JSON string.

Implementation

String toJson() => jsonEncode(toMap());