toJson method
Converts the UrlCleaner instance to a JSON string.
This method is used for serializing the URL cleaner configuration to JSON format.
Returns:
- JSON string containing all URL cleaner configuration data
Implementation
String toJson() {
return jsonEncode(toMap());
}