VisitorConversationDto class

The visitor-safe view of one of their conversations (history list, conversation.update frames).

Annotations

Constructors

VisitorConversationDto({required String id, required ConversationStatus status, String siteId = '', int seq = 0, int visitorUnread = 0, DateTime? lastMessageAt, String? lastMessagePreview, SenderType? lastMessageSenderType, DateTime? firstResponseAt, DateTime? resolvedAt, String? subject, DateTime? createdAt, DateTime? updatedAt, AgentSummary? agent, Json raw = const {}})
Creates the DTO.
const
VisitorConversationDto.fromJson(Json j)
Parses the wire shape.
factory

Properties

agent → AgentSummary?
The human handling it, when assigned.
final
createdAt → DateTime?
Creation time.
final
firstResponseAt → DateTime?
When the team first replied.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Conversation id.
final
lastMessageAt → DateTime?
When the last message was sent.
final
lastMessagePreview → String?
Preview of the last message.
final
lastMessageSenderType → SenderType?
Who sent the last message.
final
raw → Json
The full wire payload.
final
resolvedAt → DateTime?
When it was resolved.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seq → int
Latest sequence number.
final
siteId → String
Site id.
final
status → ConversationStatus
Current status.
final
subject → String?
Subject line.
final
updatedAt → DateTime?
Last update time.
final
visitorUnread → int
Messages the visitor has not read.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
The wire shape.
toString() → String
A string representation of this object.
inherited

Operators

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