ChatlistsExportedInvites.deserialize constructor

ChatlistsExportedInvites.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChatlistsExportedInvites.deserialize(BinaryReader reader) {
  // Read [ChatlistsExportedInvites] fields.
  final invites = reader.readVectorObject<ExportedChatlistInviteBase>();
  final chats = reader.readVectorObject<ChatBase>();
  final users = reader.readVectorObject<UserBase>();

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

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