MessagesSendVote.deserialize constructor

MessagesSendVote.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSendVote.deserialize(BinaryReader reader) {
  // Read [MessagesSendVote] fields.
  final peer = reader.readObject() as InputPeerBase;
  final msgId = reader.readInt32();
  final options = reader.readVectorBytes();

  // Construct [MessagesSendVote] object.
  final returnValue = MessagesSendVote(
    peer: peer,
    msgId: msgId,
    options: options,
  );

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