Dictionary
-
Undocumented
Declaration
Swift
public static func decode(_ j: Any) throws -> Dictionary
-
Create a dictionary decoder from key- and value- decoders
This function is used by
=>and=>?overloads when decoding[K: V]Declaration
Swift
public static func decoder(key keyDecoder: @escaping (Any) throws -> Key, value valueDecoder: @escaping (Any) throws -> Value) -> (Any) throws -> DictionaryParameters
keyA decoder (decode closure) for the
KeytypevalueA decoder (decode closure) for the
ValuetypeReturn Value
A closure that takes a
NSDictionaryandmaps
it using key and value decode closures
Dictionary Extension Reference