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