toJson method

Future<String> toJson()

Converts the state history to a JSON string.

Returns a JSON string representing the state history of the editor.

Implementation

Future<String> toJson() async {
  return jsonEncode(await toMap());
}