AttachMenuBotsBot.deserialize constructor

AttachMenuBotsBot.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AttachMenuBotsBot.deserialize(BinaryReader reader) {
  // Read [AttachMenuBotsBot] fields.
  final bot = reader.readObject() as AttachMenuBotBase;
  final users = reader.readVectorObject<UserBase>();

  // Construct [AttachMenuBotsBot] object.
  final returnValue = AttachMenuBotsBot(bot: bot, users: users.items);

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