RateLimitsUpdatedEvent.fromJson constructor
Creates a RateLimitsUpdatedEvent from JSON.
Implementation
factory RateLimitsUpdatedEvent.fromJson(Map<String, dynamic> json) {
return RateLimitsUpdatedEvent(
eventId: json['event_id'] as String,
rateLimits: (json['rate_limits'] as List<dynamic>)
.map((e) => RateLimit.fromJson(e as Map<String, dynamic>))
.toList(),
);
}