StrategyWeight.fromJson constructor

StrategyWeight.fromJson(
  1. 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(),
  );
}