UpdateBotChatBoost.deserialize constructor

UpdateBotChatBoost.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateBotChatBoost.deserialize(BinaryReader reader) {
  // Read [UpdateBotChatBoost] fields.
  final peer = reader.readObject() as PeerBase;
  final boost = reader.readObject() as BoostBase;
  final qts = reader.readInt32();

  // Construct [UpdateBotChatBoost] object.
  final returnValue = UpdateBotChatBoost(
    peer: peer,
    boost: boost,
    qts: qts,
  );

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