HandyJSON icon indicating copy to clipboard operation
HandyJSON copied to clipboard

在配合使用Realm的时候,无法转换Realm中List类型数据

Open little-dandan opened this issue 2 years ago • 2 comments

当模型中出现List<someType>属性的时候,转换结果是空的。List没有任何数据。

little-dandan avatar May 28 '22 02:05 little-dandan

@Persisted var areas: List<JJSAreaRealmModel>

使用HandyJSON进行转换,所有字段都为nil

little-dandan avatar May 28 '22 02:05 little-dandan

这个只能你自己手动转换了,realm太小众了

ruixingchen avatar Jun 14 '22 06:06 ruixingchen