RateLimitsUpdatedEvent.fromJson constructor

RateLimitsUpdatedEvent.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory RateLimitsUpdatedEvent.fromJson(Map<String, dynamic> j) => RateLimitsUpdatedEvent(
      eventId: j['event_id'] as String,
      rateLimits: (j['rate_limits'] as List).cast<Map<String, dynamic>>().map(RateLimit.fromJson).toList(),
    );