MessageDto constructor

const MessageDto({
  1. required String id,
  2. required String conversationId,
  3. required int seq,
  4. required SenderType senderType,
  5. required String content,
  6. required DateTime createdAt,
  7. String? senderId,
  8. String? senderName,
  9. String visibility = 'public',
  10. String contentType = 'text',
  11. List<Attachment> attachments = const [],
  12. String? clientId,
  13. Json? metadata,
  14. String? deliveryStatus,
  15. String? deliveryError,
  16. 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,
});