toJson method

String toJson()

Serializes the event to a JSON string.

Implementation

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