InputBotInlineResultGame.deserialize constructor

InputBotInlineResultGame.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputBotInlineResultGame.deserialize(BinaryReader reader) {
  // Read [InputBotInlineResultGame] fields.
  final id = reader.readString();
  final shortName = reader.readString();
  final sendMessage = reader.readObject() as InputBotInlineMessageBase;

  // Construct [InputBotInlineResultGame] object.
  final returnValue = InputBotInlineResultGame(
    id: id,
    shortName: shortName,
    sendMessage: sendMessage,
  );

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