SmartJSONDecoder
open class SmartJSONDecoder : JSONDecoder, @unchecked Sendable
Undocumented
-
Undocumented
Declaration
Swift
open var smartDataDecodingStrategy: SmartDataDecodingStrategy -
Undocumented
Declaration
Swift
open var smartDateDecodingStrategy: DateDecodingStrategy? -
Undocumented
Declaration
Swift
open var smartKeyDecodingStrategy: SmartKeyDecodingStrategy
-
Decodes a top-level value of the given type from the given JSON representation.
Throws
DecodingError.dataCorruptedif values requested from the payload are corrupted, or if the given data is not valid JSON.Throws
An error if any value throws an error during decoding.Declaration
Swift
public func smartDecode<T>(_ type: T.Type, from input: Any) throws -> T where T : DecodableParameters
typeThe type of the value to decode.
dataThe data to decode from.
Return Value
A value of the requested type.
View on GitHub