[swift-users] Where CodingKey protocol is implemented on swift source code

Solli Honorio shonorio at gmail.com
Wed Oct 4 16:50:19 CDT 2017

Studying "Codable.swift" and "JSONEncoder.swift" to understand how decoding
works under the hood, I got confused about how CodingKey is implemented for
'enum'. Shouldn't have an extension of RawRepresentable to implement the
CodingKey protocol?

This is the answer I'm looking for, how the CodingKey protocol is
implemented on enum?

I appreciate any help, tks

Solli Honorio

"o animal satisfeito dorme". - GuimarĂ£es Rosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171004/d3efc7f2/attachment.html>

More information about the swift-users mailing list