DataDecodingStrategy
public enum DataDecodingStrategy
The strategy to use for decoding Data values.
-
Defer to
Datafor decoding.Declaration
Swift
case deferredToData -
Decode the
Datafrom a Base64-encoded string.Declaration
Swift
case base64 -
Don’t decode. This is the default strategy.
Declaration
Swift
case raw -
Decode the
Dataas a custom value decoded by the given closure.Declaration
Swift
case custom((_ decoder: Decoder) throws -> Data)
View on GitHub
DataDecodingStrategy Enumeration Reference