UrlCleaner.fromMap constructor
Creates a UrlCleaner instance from a Map.
This factory constructor is used for deserializing URL cleaner configuration from JSON or other map-based formats.
Parameters:
map
: Map containing URL cleaner configuration
Returns:
- New UrlCleaner instance with configuration from the map
Implementation
factory UrlCleaner.fromMap(Map<String, dynamic> map) {
return UrlCleaner(
whitelistParams: map['whitelistParams'] != null
? List<String>.from(map['whitelistParams'])
: null,
blacklistParams: map['blacklistParams'] != null
? List<String>.from(map['blacklistParams'])
: null,
appendParams: map['appendParams'] != null
? Map<String, String>.from(map['appendParams'])
: null,
);
}