UpdateBotChatInviteRequester.deserialize constructor
UpdateBotChatInviteRequester.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateBotChatInviteRequester.deserialize(BinaryReader reader) {
// Read [UpdateBotChatInviteRequester] fields.
final flags = reader.readInt32();
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();
final hasQueryIdField = (flags & 1) != 0;
final queryId = hasQueryIdField ? reader.readInt64() : null;
// Construct [UpdateBotChatInviteRequester] object.
final returnValue = UpdateBotChatInviteRequester(
peer: peer,
date: date,
userId: userId,
about: about,
invite: invite,
qts: qts,
queryId: queryId,
);
// Now return the deserialized [UpdateBotChatInviteRequester].
return returnValue;
}