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