GenUiFixture class

A recorded GenUI session: one or more RecordedTurns captured from a real, live conversation, saved so it can be replayed later without any network access.

Constructors

GenUiFixture({required String name, required List<RecordedTurn> turns, String? description, DateTime? recordedAt})
Creates a GenUiFixture.
GenUiFixture.fromJson(Map<String, dynamic> json)
Deserializes a GenUiFixture from a decoded JSON map.
factory

Properties

description String?
An optional longer description of what this session recorded.
final
hashCode int
The hash code for this object.
no setterinherited
name String
A short identifying name for this fixture, e.g. "weather_forecast".
final
recordedAt DateTime
When this fixture was recorded.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
turns List<RecordedTurn>
The ordered turns captured in this session. Replaying the fixture consumes them in this order, one per sendRequest call.
final

Methods

encode() String
Encodes this fixture as pretty-printed, git-diffable JSON text.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this fixture to a decoded JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(String jsonText) GenUiFixture
Decodes a fixture previously produced by encode.