I have written the following method that takes a generic type. How do i pass a list of type Order as the response type?
public <T> ServiceResponse<T> fetchGet(String url, Class<T> responseType, boolean authRequired);
// This works just fine
fetchGet("MY_URL", Order.class, true);
// How do i pass a list?
fetchGet("MY_URL", List<Order>.class, true);