KeyedDecodingContainerProtocol
extension KeyedDecodingContainerProtocol
-
Declaration
Swift
public func decodeArray<T>(_ type: T.Type, forKey key: Self.Key) throws -> [T] where T : Decodable
-
Declaration
Swift
public func decodeArrayIfPresent<T>(_ type: T.Type, forKey key: Self.Key) throws -> [T]? where T : Decodable
-
Declaration
Swift
public func decodeMap<T>(_ type: T.Type, excludedKeys: Set<Self.Key>) throws -> [Self.Key : T] where T : Decodable, Self.Key : Hashable