BotsReorderUsernames.deserialize constructor

BotsReorderUsernames.deserialize(
  1. 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;
}