Created
November 4, 2017 17:49
-
-
Save pgpt10/6ccec733e41c482c59e1c8b4b8673d68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Photo: Codable | |
{ | |
//...Other properties (described in Code Snippet - 1)... | |
//This property is not included in the CodingKeys enum and hence will not be encoded/decoded. | |
var format: String = "png" | |
enum CodingKeys: String, CodingKey | |
{ | |
case title = "name" | |
case url = "link" | |
case isSample | |
case metaData | |
case type | |
case size | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment