Apply serializer to the request body.