Parser.fromJson constructor
Parser.fromJson(
- String json
Creates a Parser instance from a JSON string.
This factory constructor is used for deserializing parser configurations from JSON strings.
Parameters:
json
: JSON string containing parser configuration data
Returns:
- New Parser instance with data from the JSON
Implementation
factory Parser.fromJson(String json) {
return Parser.fromMap(jsonDecode(json));
}