Skip to content

Support Swift 4 Codable

Brian Arnold edited this page Jun 10, 2017 · 1 revision

Swift 4 Codable can be used to automatically generate a constructor that accepts an Decoder and an encode(to:) method that accepts an Encoder. Keys are also automatically generated in a nested struct. This converter should be made aware of Swift 4 Codable and generate the appropriate overrides (such as mapping keys that contain spaces or underscores) if necessary.

Clone this wiki locally