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,
  );

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