A key decoding strategy defined by the closure you supply.
Mac Catalyst 13.0+Beta
The value associated with this case is a closure you use to map names of keys from the decoded JSON object to the names of your type's coding keys. During decoding, the closure is called once for each key in the Decodable value being decoded. The closure is called along with an array of CodingKey instances representing the sequence of keys needed to reach the value being decoded.
The example below shows how to decode the properties of the nested A, B, and C structures with custom logic that you specify in the closure value associated with the custom case.
In the next example you use the AnyKey structure defined above to customize the decoding of the A, B, and C structures.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.