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