code: public <T> T[] getAll(Map<String, Object> data, String attr, Class<T> clazz) {
      return convert((Object[]) data.get(attr), clazz);
    }
docs: <p>
  getAll.
  </p>
  
  @param data a {@link java.util.Map} object.
  @param attr a {@link java.lang.String} object.
  @param clazz a {@link java.lang.Class} object.
  @param <T> a T object.
  @return an array of T objects.