MetaKeyedDecodingContainer
open class MetaKeyedDecodingContainer<K> : KeyedDecodingContainerProtocol where K : CodingKey
Manages a DecodingKeyedContainerMeta
-
Declaration
Swift
public typealias Key = K
-
This MetaKeyedDecodingContainer’s meta.
Declaration
Swift
public let meta: DecodingKeyedContainerMeta
-
The decoder that created this container.
Decoding, creating new containers and creating super decoders is delegated to it.
Declaration
Swift
public let decoder: MetaDecoder
-
Declaration
Swift
public let codingPath: [CodingKey]
-
Declaration
Swift
public init(for meta: DecodingKeyedContainerMeta, at codingPath: [CodingKey], decoder: MetaDecoder)
-
Declaration
Swift
open func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type, forKey key: K) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey
-
Declaration
Swift
open func nestedUnkeyedContainer(forKey key: K) throws -> UnkeyedDecodingContainer
-
Declaration
Swift
open func superDecoder() throws -> Decoder
-
Declaration
Swift
open func superDecoder(forKey key: K) throws -> Decoder
-
An utility mathod that acesses the meta stored at key and throws an error, if the value isn’t present.
Declaration
Swift
public func accessMeta(at key: CodingKey) throws -> Meta