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 bool?,
match: map['match'] as String?,
value: (map['value'] as num?)?.toDouble(),
);
}