MessagePeerVoteInputOption.deserialize constructor

MessagePeerVoteInputOption.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagePeerVoteInputOption.deserialize(BinaryReader reader) {
  // Read [MessagePeerVoteInputOption] fields.
  final peer = reader.readObject() as PeerBase;
  final date = reader.readDateTime();

  // Construct [MessagePeerVoteInputOption] object.
  final returnValue = MessagePeerVoteInputOption(
    peer: peer,
    date: date,
  );

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