BotsBotInfo.deserialize constructor
BotsBotInfo.deserialize(
- 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;
}