TrafficPercentStrategy.fromJson constructor

TrafficPercentStrategy.fromJson(
  1. Map json_
)

Implementation

TrafficPercentStrategy.fromJson(core.Map json_)
    : this(
        percentages: json_.containsKey('percentages')
            ? (json_['percentages'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  (value as core.num).toDouble(),
                ),
              )
            : null,
      );