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

Fix Xcode build-time error : Change generic type from 'AnyObject' to 'String' -> Fixes #105 #106

Closed ankushkushwaha closed 5 years ago

ankushkushwaha commented 6 years ago

In Swift-Struct-Codable format 'decodeIfPresent' cannot produce value of type 'Anyobject'. So changing geberic-type from 'AnyObject'to 'String' for null json values will allow to compile the xcode project

Fixes #105

Related to #96