UrlCleaner.fromJson constructor
UrlCleaner.fromJson(
- String json
Creates a UrlCleaner instance from a JSON string.
This factory constructor is used for deserializing URL cleaner configuration from JSON strings.
Parameters:
json
: JSON string containing URL cleaner configuration
Returns:
- New UrlCleaner instance with configuration from the JSON
Throws:
- FormatException if the JSON is invalid
Implementation
factory UrlCleaner.fromJson(String json) {
return UrlCleaner.fromMap(jsonDecode(json));
}