Is it possible to create a method that uses generics?

… or at least pass in a specific class? Here is what I have right now: private static invoice_response GetResponse(String jsonResponse) { invoice_response deserialized = (invoice_response) JSON.deserialize(jsonResponse, invoice_response.class); return deserialized; } Since I have to deserialized a bunch of things… I’d like to have the following with Generics or perhaps another way: private static invoice_response … Read more