WebScraperError.fromMap constructor

WebScraperError.fromMap(
  1. Map<String, dynamic> map
)

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']);
}