EmojiList.deserialize constructor

EmojiList.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory EmojiList.deserialize(BinaryReader reader) {
  // Read [EmojiList] fields.
  final hash = reader.readInt64();
  final documentId = reader.readVectorInt64();

  // Construct [EmojiList] object.
  final returnValue = EmojiList(
    hash: hash,
    documentId: documentId,
  );

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