LimitResponse class

LimitResponse defines how to handle requests that can not be executed right now.

Constructors

LimitResponse({QueuingConfiguration? queuing, required String type})
The main constructor.
const
LimitResponse.fromJson(Map<String, dynamic> json)
Creates a LimitResponse from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
queuing QueuingConfiguration?
queuing holds the configuration parameters for queuing. This field may be non-empty only if type is "Queue".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
type is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
final

Methods

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

Operators

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<LimitResponse>
Creates a list of LimitResponse from JSON data.