HandyJSON icon indicating copy to clipboard operation
HandyJSON copied to clipboard

Realm List 类型兼容问题,无法解析

Open Young-Li-wxx opened this issue 6 years ago • 1 comments

Swift: 5.0 Realm: 3.16.1

@objcMembers
class HTUserInfo: Object, HandyJSON {
    let role = List<String>()
}

HTUserInfo.deserialize(from: json)

role应该是 ["1", "2"] 但解析出来是个空数组

Young-Li-wxx avatar Aug 02 '19 11:08 Young-Li-wxx

i. have same problem too, did u solved this?

fukemy avatar Mar 14 '22 05:03 fukemy