Allow parsing data with Gson and then transforming them to another type