In the code below I want to pass the 'Races.class' as an argument to the method 'getAllRaces()'. How do I do this?
public static void getAllRaces() throws ClientProtocolException, IOException
{
Response myReponse = APIExecutor.getRequest("/races");
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.serializeNulls().setPrettyPrinting().create();
Races races = gson.fromJson(myReponse.getReqResponse(), Races.class);
...
}