protected Object fromJson(JsonReader in, Type type) throws JsonIOException { if (isNullOrVoidType(type)) { return new JsonParser().parse(in); } return gson.fromJson(in, type); }
protected Object fromJson(JsonReader in, Type type) throws JsonIOException { if (isNullOrVoidType(type)) { return new JsonParser().parse(in); } return gson.fromJson(in, type); }
protected Object fromJson(JsonElement element, Type type) { if (isNull(element)) { return null; } if (isNullOrVoidType(type)) { return element; } Object value = gson.fromJson(element, type); if (isNull(value)) { return null; } return value; }
protected Object fromJson(JsonElement element, Type type) { if (isNull(element)) { return null; } if (isNullOrVoidType(type)) { return element; } Object value = gson.fromJson(element, type); if (isNull(value)) { return null; } return value; }