toMap method
Converts the WebScraperError instance to a Map.
This method is used for serializing the error to JSON or other map-based formats.
Returns:
- Map containing the error message
Implementation
Map<String, dynamic> toMap() {
return {
'message': message,
};
}