alibaba / HandyJSON

A handy swift json-object serialization/deserialization library
Other
4.22k stars 615 forks source link

如何在数据模型内部,进行update #449

Open xwppoppin opened 2 years ago

xwppoppin commented 2 years ago

override func decode(with data: Data!) { let json = .... JSONDeserializer.update(object: self, from: json) }

如何在模型内部进行update,报错Cannot pass immutable value as inout argument: 'self' is immutable