toData method
- RecentChatsCursor? recent,
- FavoriteChatsCursor? favorite
Implementation
ChatData toData([RecentChatsCursor? recent, FavoriteChatsCursor? favorite]) {
final lastItem = this.lastItem?.toDto();
final lastReadItem = this.lastReadItem?.toDto();
return ChatData(toDto(recent, favorite), lastItem, lastReadItem);
}