Generate the object to send to the server containing the parameters.