StatsGroupTopPoster.deserialize constructor

StatsGroupTopPoster.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory StatsGroupTopPoster.deserialize(BinaryReader reader) {
  // Read [StatsGroupTopPoster] fields.
  final userId = reader.readInt64();
  final messages = reader.readInt32();
  final avgChars = reader.readInt32();

  // Construct [StatsGroupTopPoster] object.
  final returnValue = StatsGroupTopPoster(
    userId: userId,
    messages: messages,
    avgChars: avgChars,
  );

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