ChatReactionsAll.deserialize constructor

ChatReactionsAll.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChatReactionsAll.deserialize(BinaryReader reader) {
  // Read [ChatReactionsAll] fields.
  final flags = reader.readInt32();
  final allowCustom = (flags & 1) != 0;

  // Construct [ChatReactionsAll] object.
  final returnValue = ChatReactionsAll(
    allowCustom: allowCustom,
  );

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