DynamicDecodable
public protocol DynamicDecodable
Allows overriding default decode function from your app.
You likely don’t want to conform to this yourself.
-
Undocumented
Declaration
Swift
associatedtype DecodedType -
A closure describing how this type should be decoded
Types also conforming to
Decodablecall this closure from theirdecodefunction.Note
This is intended as a set-once thing.Declaration
Swift
static var decoder: (Any) throws -> DecodedType { get set }
DynamicDecodable Protocol Reference