ContactsTopPeers.deserialize constructor
ContactsTopPeers.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ContactsTopPeers.deserialize(BinaryReader reader) {
// Read [ContactsTopPeers] fields.
final categories = reader.readVectorObject<TopPeerCategoryPeersBase>();
final chats = reader.readVectorObject<ChatBase>();
final users = reader.readVectorObject<UserBase>();
// Construct [ContactsTopPeers] object.
final returnValue = ContactsTopPeers(
categories: categories,
chats: chats,
users: users,
);
// Now return the deserialized [ContactsTopPeers].
return returnValue;
}