SendMessageEmojiInteraction.deserialize constructor

SendMessageEmojiInteraction.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory SendMessageEmojiInteraction.deserialize(BinaryReader reader) {
  // Read [SendMessageEmojiInteraction] fields.
  final emoticon = reader.readString();
  final msgId = reader.readInt32();
  final interaction = reader.readObject() as DataJSONBase;

  // Construct [SendMessageEmojiInteraction] object.
  final returnValue = SendMessageEmojiInteraction(
    emoticon: emoticon,
    msgId: msgId,
    interaction: interaction,
  );

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