DynamicDecoder
public enum DynamicDecoder
An enumeration that provides functionality for dynamic decoding of data. This can be used to decode data whose structure is not known at compile time.
-
Extracts a value from the given data for a specified key.
Throws
An error if the extraction process fails.Declaration
Swift
public static func extractValue( from data: Data, key: String, forIndex: Bool = false ) throws -> StringParameters
dataThe
Dataobject containing the encoded information.keyThe key whose associated value needs to be extracted.
forIndexA Boolean value indicating whether the extraction is for indexing purposes. Defaults to
false.Return Value
A
Stringrepresenting the extracted value.
View on GitHub