Ahmed-Ali / JSONExport

JSONExport is a desktop application for Mac OS X which enables you to export JSON objects as model classes with their associated constructors, utility methods, setters and getters in your favorite language.
Other
4.8k stars 794 forks source link

Swift generated code has some redundant lines #122

Open fadi-botros opened 6 years ago

fadi-botros commented 6 years ago

When you generate files using Swift generator, you find both NSCoding and toDictionary/fromDictionary

I think it could be more readable and small if the NSCoding comformance was just delegating to toDictionary and fromDictionary

Also this approach is more Objective-C than Swift, in Swift we just have Encodable/Decodable