RateLimit class

A rate limit.

Annotations
  • @immutable

Constructors

RateLimit({required String name, required int limit, required int remaining, required double resetSeconds})
Creates a RateLimit.
const
RateLimit.fromJson(Map<String, dynamic> json)
Creates a RateLimit from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
limit int
The limit.
final
name String
The rate limit name.
final
remaining int
The remaining quota.
final
resetSeconds double
Seconds until reset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override