RequestCounts class
Counts of requests in different states within a batch.
- Annotations
-
- @immutable
Constructors
- RequestCounts({required int processing, required int succeeded, required int errored, required int canceled, required int expired})
-
Creates a RequestCounts.
const
-
RequestCounts.fromJson(Map<
String, dynamic> json) -
Creates a RequestCounts from JSON.
factory
Properties
- canceled → int
-
Number of canceled requests.
final
- errored → int
-
Number of requests that errored.
final
- expired → int
-
Number of expired requests.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- processing → int
-
Number of requests being processed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- succeeded → int
-
Number of successfully completed requests.
final
Methods
-
copyWith(
{int? processing, int? succeeded, int? errored, int? canceled, int? expired}) → RequestCounts - Creates a copy with replaced values.
-
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