BotsBotInfo.deserialize constructor

BotsBotInfo.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsBotInfo.deserialize(BinaryReader reader) {
  // Read [BotsBotInfo] fields.
  final name = reader.readString();
  final about = reader.readString();
  final description = reader.readString();

  // Construct [BotsBotInfo] object.
  final returnValue = BotsBotInfo(
    name: name,
    about: about,
    description: description,
  );

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