tristanhimmelman / ObjectMapper

Simple JSON Object mapping written in Swift
MIT License
9.16k stars 1.03k forks source link

Model to object lost data #1042

Closed keyasu closed 5 years ago

keyasu commented 5 years ago

image

为什么, 模型里面转模型的每个对象有45的数据 ,但是转成 json 的话只有6个转出来的呢?

arsalanj commented 5 years ago

Make sure the mapping function in the model class has proper mappings of all properties. If one is missed it might lead to data loss