Converts the provided input into a request object
input
The user input to serialize.
Context containing runtime-specific util functions.