Interaction class
One recorded request→response pair.
Constructors
-
Interaction({required String key, required Map<
String, Object?> request, required RecordedResponse response, String? recordedAt})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The request fingerprint (see fingerprintRequest).
final
- recordedAt → String?
-
ISO-8601 timestamp of when this was recorded, if captured.
final
-
request
→ Map<
String, Object?> -
A canonical, human-readable copy of the request that produced key.
Stored so cassette files are debuggable in a diff, not just opaque hashes.
final
- response → RecordedResponse
-
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, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → Interaction