WebScraperError.fromMap constructor
Creates a WebScraperError instance from a Map.
This factory constructor is used for deserializing error data from JSON or other map-based formats.
Parameters:
map
: Map containing error message
Returns:
- New WebScraperError instance with message from the map
Implementation
factory WebScraperError.fromMap(Map<String, dynamic> map) {
return WebScraperError(map['message']);
}