src/main/java/tech/zettervall/openlibrary/rxclient/models/Book.java
/**
     * Convert Book API response to List<T extends Book>.
     */
Convert Book API response to List.
Convert Book API response to List .
public static <T extends Book> List<T> jsonConverter(Class<T> bookClass, JsonObject obj) {
        List<T> books = new ArrayList<>();
        obj.keySet().forEach(key -> books.add(new Gson().fromJson(obj.get(key), bookClass)));
        return books;
    }
public static < T extends Book > List < T > jsonConverter ( Class < T > bookClass , JsonObject obj ) { List < T > books = new ArrayList < > ( ) ; obj . keySet ( ) . forEach ( key -> books . add ( new Gson ( ) . fromJson ( obj . get ( key ) , bookClass ) ) ) ; return books ; }
Convert Book API response to List<T extends Book>.
Convert Book API response to List<T extends Book > .