UpdateStickerSets.deserialize constructor

UpdateStickerSets.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateStickerSets.deserialize(BinaryReader reader) {
  // Read [UpdateStickerSets] fields.
  final flags = reader.readInt32();
  final masks = (flags & 1) != 0;
  final emojis = (flags & 2) != 0;

  // Construct [UpdateStickerSets] object.
  final returnValue = UpdateStickerSets(
    masks: masks,
    emojis: emojis,
  );

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