TestResult class

Constructors

TestResult({bool? delivered, int? durationMs, String? error, int? httpStatus})
Returns a new TestResult instance.

Properties

delivered ↔ bool?
Delivered is whether the subscriber accepted the test POST. It is the whole answer: the send is synchronous and is not retried.
getter/setter pair
durationMs ↔ int?
DurationMs is how long the single attempt took, in MILLISECONDS.
getter/setter pair
error ↔ String?
Error says what stopped it. Empty when delivered.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
httpStatus ↔ int?
HTTPStatus is what the subscriber answered, or 0 if it never answered.
getter/setter pair
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>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → TestResult?
Returns a new TestResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TestResult>
mapFromJson(dynamic json) → Map<String, TestResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TestResult>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.