Decodable
extension Decodable
Usage examples: see extension Encodable
-
Decodes Data into Self
Throws
on errorDeclaration
Swift
public static func decode(with decoder: JSONDecoder = JSONDecoder(), from data: Data) throws -> SelfParameters
decoderdefaults to JSONDecoder
datapreviously encoded Data
Return Value
a Self value
Decodable Extension Reference