BotsExportBotToken.deserialize constructor
BotsExportBotToken.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory BotsExportBotToken.deserialize(BinaryReader reader) {
// Read [BotsExportBotToken] fields.
final bot = reader.readObject() as InputUserBase;
final revoke = reader.readBool();
// Construct [BotsExportBotToken] object.
final returnValue = BotsExportBotToken(bot: bot, revoke: revoke);
// Now return the deserialized [BotsExportBotToken].
return returnValue;
}