KeyboardButton.deserialize constructor
KeyboardButton.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory KeyboardButton.deserialize(BinaryReader reader) {
// Read [KeyboardButton] fields.
final text = reader.readString();
// Construct [KeyboardButton] object.
final returnValue = KeyboardButton(
text: text,
);
// Now return the deserialized [KeyboardButton].
return returnValue;
}