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 Decodable call this closure from their decode function.

    Note

    This is intended as a set-once thing.

    Declaration

    Swift

    static var decoder: (Any) throws -> DecodedType { get set }