AttachMenuBots.deserialize constructor

AttachMenuBots.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AttachMenuBots.deserialize(BinaryReader reader) {
  // Read [AttachMenuBots] fields.
  final hash = reader.readInt64();
  final bots = reader.readVectorObject<AttachMenuBotBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [AttachMenuBots] object.
  final returnValue = AttachMenuBots(
    hash: hash,
    bots: bots,
    users: users,
  );

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