MessagesInactiveChats.deserialize constructor

MessagesInactiveChats.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesInactiveChats.deserialize(BinaryReader reader) {
  // Read [MessagesInactiveChats] fields.
  final dates = reader.readVectorInt32();
  final chats = reader.readVectorObject<ChatBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [MessagesInactiveChats] object.
  final returnValue = MessagesInactiveChats(
    dates: dates,
    chats: chats,
    users: users,
  );

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