MessagesSearchCustomEmoji.deserialize constructor

MessagesSearchCustomEmoji.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSearchCustomEmoji.deserialize(BinaryReader reader) {
  // Read [MessagesSearchCustomEmoji] fields.
  final emoticon = reader.readString();
  final hash = reader.readInt64();

  // Construct [MessagesSearchCustomEmoji] object.
  final returnValue = MessagesSearchCustomEmoji(
    emoticon: emoticon,
    hash: hash,
  );

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