toJson method

String toJson()

Creates a JSON string representing this Event instance.

The resulting JSON string can be parsed back using Event.fromJson.

Implementation

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