MessagesChatsSlice.deserialize constructor

MessagesChatsSlice.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesChatsSlice.deserialize(BinaryReader reader) {
  // Read [MessagesChatsSlice] fields.
  final count = reader.readInt32();
  final chats = reader.readVectorObject<ChatBase>();

  // Construct [MessagesChatsSlice] object.
  final returnValue = MessagesChatsSlice(
    count: count,
    chats: chats,
  );

  // Now return the deserialized [MessagesChatsSlice].
  return returnValue;
}