code: public <T> TypeAdapter<T> getAdapter(Class<T> type) {
      return getAdapter(TypeToken.get(type));
    }
docs: Returns the type adapter for {@code} type.
  
  @throws IllegalArgumentException if this GSON cannot serialize and
  deserialize {@code type}.