ArchiveFebruary 2018

Decodable in Swift 4

D

According to Apple Codable is “A type that can convert itself into and out of an external representation.” Encodable — for encoding Decodable — for decoding Codable — for both encoding as well as decoding Let suppose we need to decode json response of type as below, [ {               "name": "India",               "dial_code": "+91",               "code": "IN"             } ] For...

Category