TrafficRule.fromJson constructor
TrafficRule.fromJson(
- Map json_
Implementation
TrafficRule.fromJson(core.Map json_)
: this(
bandwidth: json_.containsKey('bandwidth')
? (json_['bandwidth'] as core.num).toDouble()
: null,
burst: json_.containsKey('burst')
? (json_['burst'] as core.num).toDouble()
: null,
delay:
json_.containsKey('delay') ? json_['delay'] as core.String : null,
packetDuplicationRatio: json_.containsKey('packetDuplicationRatio')
? (json_['packetDuplicationRatio'] as core.num).toDouble()
: null,
packetLossRatio: json_.containsKey('packetLossRatio')
? (json_['packetLossRatio'] as core.num).toDouble()
: null,
);