public Object fromJson(String json, Class classOfT)
throws JsonSyntaxException
{
//如下代码 ((Type) (classOfT))是什么意思
Object object = fromJson(json, ((Type) (classOfT)));
return Primitives.wrap(classOfT).cast(object);
}
public Object fromJson(String json, Type typeOfT)
throws JsonSyntaxException
{
if(json == null)
{
return null;
} else
{
StringReader reader = new StringReader(json);
Object target = fromJson(((Reader) (reader)), typeOfT);
return target;
}
}