MessagesExportedChatInviteReplaced.deserialize constructor

MessagesExportedChatInviteReplaced.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesExportedChatInviteReplaced.deserialize(BinaryReader reader) {
  // Read [MessagesExportedChatInviteReplaced] fields.
  final invite = reader.readObject() as ExportedChatInviteBase;
  final newInvite = reader.readObject() as ExportedChatInviteBase;
  final users = reader.readVectorObject<UserBase>();

  // Construct [MessagesExportedChatInviteReplaced] object.
  final returnValue = MessagesExportedChatInviteReplaced(
    invite: invite,
    newInvite: newInvite,
    users: users,
  );

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