InputBotInlineResultGame.deserialize constructor
InputBotInlineResultGame.deserialize(
- 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;
}