KeyboardButtonRequestPhone.deserialize constructor

KeyboardButtonRequestPhone.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory KeyboardButtonRequestPhone.deserialize(BinaryReader reader) {
  // Read [KeyboardButtonRequestPhone] fields.
  final text = reader.readString();

  // Construct [KeyboardButtonRequestPhone] object.
  final returnValue = KeyboardButtonRequestPhone(
    text: text,
  );

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