MessageDto constructor
- required String id,
- required String conversationId,
- required int seq,
- required SenderType senderType,
- required String content,
- required DateTime createdAt,
- String? senderId,
- String? senderName,
- String visibility = 'public',
- String contentType = 'text',
- List<
Attachment> attachments = const [], - String? clientId,
- Json? metadata,
- String? deliveryStatus,
- String? deliveryError,
- DateTime? readAt,
Creates a message.
Implementation
const MessageDto({
required this.id,
required this.conversationId,
required this.seq,
required this.senderType,
required this.content,
required this.createdAt,
this.senderId,
this.senderName,
this.visibility = 'public',
this.contentType = 'text',
this.attachments = const [],
this.clientId,
this.metadata,
this.deliveryStatus,
this.deliveryError,
this.readAt,
});