Returning a polymorphic FromJSON type from the xml converter and ensuring a dependency between the request and response types