copyFrom method

SessionData copyFrom(
  1. SessionData other
)

Returns a copy of this SessionData from the other.

Implementation

SessionData copyFrom(SessionData other) {
  return copyWith(
    favoriteChatsListVersion: other.favoriteChatsListVersion,
    favoriteChatsSynchronized: other.favoriteChatsSynchronized,
    chatContactsListVersion: other.chatContactsListVersion,
    favoriteContactsSynchronized: other.favoriteContactsSynchronized,
    contactsSynchronized: other.contactsSynchronized,
    blocklistSynchronized: other.blocklistSynchronized,
    sessionsListVersion: other.sessionsListVersion,
    blocklistVersion: other.blocklistVersion,
    blocklistCount: other.blocklistCount,
  );
}