jjzjj

ClassJsonAdapter

全部标签

android - Moshi:应为类、ParameterizedType 或 GenericArrayType,但 <null> 的类型为 null

我有这个模型:classModel1{varattributes:Map?=null}我希望得到这些模型的列表。示例JSON:[{"attributes":{"title":"NewYear'sDay","country":"SG"}},{"attributes":{"staff_id":320011,"title":"Laborday","date_joined":"2017-01-1000:00:00","years":1}}]然后我在反序列化过程中得到这个错误:Causedby:java.lang.IllegalArgumentException:ExpectedaClass,P