ScraperConfig.fromJson constructor

ScraperConfig.fromJson(
  1. String json
)

Creates a ScraperConfig instance from a JSON string.

This factory constructor is used for deserializing configuration from JSON strings.

Parameters:

  • json: JSON string containing configuration data

Returns:

  • New ScraperConfig instance with data from the JSON

Implementation

factory ScraperConfig.fromJson(String json) {
  return ScraperConfig.fromMap(jsonDecode(json));
}