ConversationEventDto class
Something that happened in a conversation (status change, handoff, ...).
- Inheritance
-
- Object
- TimelineItem
- ConversationEventDto
Constructors
- ConversationEventDto({required String id, required String conversationId, required int seq, required String type, required DateTime createdAt, SenderType actorType = SenderType.system, String? actorId, Json data = const {}})
-
Creates an event.
const
- ConversationEventDto.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- actorId → String?
-
The actor's id.
final
- actorType → SenderType
-
Who caused it.
final
- conversationId → String
-
The conversation this row belongs to.
final
- createdAt → DateTime
-
When it was created.
final
- data → Json
-
Event payload.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique id.
final
- isLocal → bool
-
Rows the SDK made up locally (
showMessage, notices); never persisted.no setterinherited - kind → String
-
messageorevent.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seq → int
-
Position in the conversation (monotonic).
final
- type → String
-
Event type (
status_changed,handoff,notice,rated, ...).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
The wire shape, including
kind.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited