TextBotCommand.deserialize constructor

TextBotCommand.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory TextBotCommand.deserialize(BinaryReader reader) {
  // Read [TextBotCommand] fields.
  final text = reader.readObject() as RichTextBase;

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

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