UpdateBotChatInviteRequester.deserialize constructor

UpdateBotChatInviteRequester.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateBotChatInviteRequester.deserialize(BinaryReader reader) {
  // Read [UpdateBotChatInviteRequester] fields.
  final peer = reader.readObject() as PeerBase;
  final date = reader.readDateTime();
  final userId = reader.readInt64();
  final about = reader.readString();
  final invite = reader.readObject() as ExportedChatInviteBase;
  final qts = reader.readInt32();

  // Construct [UpdateBotChatInviteRequester] object.
  final returnValue = UpdateBotChatInviteRequester(
    peer: peer,
    date: date,
    userId: userId,
    about: about,
    invite: invite,
    qts: qts,
  );

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