TrafficPercentStrategy.fromJson constructor

TrafficPercentStrategy.fromJson(
  1. Map _json
)

Implementation

TrafficPercentStrategy.fromJson(core.Map _json) {
  if (_json.containsKey("percentages")) {
    percentages = commons.mapMap<core.num, core.double>(
        _json["percentages"].cast<core.String, core.num>(),
        (core.num item) => item.toDouble());
  }
}