StrategyWeight.fromJson constructor
StrategyWeight.fromJson(
- Object? json
Implementation
factory StrategyWeight.fromJson(Object? json) {
final map = asJsonMap(json, 'strategy weight');
return StrategyWeight(
regexp: map['regexp'] as String?,
weight: (map['weight'] as num?)?.toDouble(),
);
}