toJson method

String toJson()

Converts the Parser instance to a JSON string.

This method is used for serializing the parser configuration to JSON.

Returns:

  • JSON string containing all parser configuration data

Implementation

String toJson() {
  return jsonEncode(toMap());
}