rateLimitInformationFromJson static method

GroqRateLimitInformation rateLimitInformationFromJson(
  1. Map<String, dynamic> json
)

Implementation

static GroqRateLimitInformation rateLimitInformationFromJson(
    Map<String, dynamic> json) {
  return GroqRateLimitInformation(
    totalRequestsPerDay: json['totalRequestsPerDay'] as int,
    remainingRequestsToday: json['remainingRequestsToday'] as int,
    totalTokensPerMinute: json['totalTokensPerMinute'] as int,
    remainingTokensThisMinute: json['remainingTokensThisMinute'] as int,
  );
}