toModel method

ChatMessage toModel()

Constructs a new ChatMessage from this NestedChatMessageMixin.

Implementation

ChatMessage toModel() => ChatMessage(
  id,
  chatId,
  author.toModel(),
  at,
  repliesTo: [],
  text: text,
  editedAt: editedAt,
  attachments: attachments.map((e) => e.toModel()).toList(),
);