RateLimits.fromJson constructor
RateLimits.fromJson(
- Map json_
Implementation
RateLimits.fromJson(core.Map json_)
: this(
maxBurstSize: json_.containsKey('maxBurstSize')
? json_['maxBurstSize'] as core.int
: null,
maxConcurrentDispatches: json_.containsKey('maxConcurrentDispatches')
? json_['maxConcurrentDispatches'] as core.int
: null,
maxDispatchesPerSecond: json_.containsKey('maxDispatchesPerSecond')
? (json_['maxDispatchesPerSecond'] as core.num).toDouble()
: null,
);