KeyboardButtonRow.deserialize constructor

KeyboardButtonRow.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory KeyboardButtonRow.deserialize(BinaryReader reader) {
  // Read [KeyboardButtonRow] fields.
  final buttons = reader.readVectorObject<KeyboardButtonBase>();

  // Construct [KeyboardButtonRow] object.
  final returnValue = KeyboardButtonRow(buttons: buttons.items);

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