Skip to content

Instantly share code, notes, and snippets.

@pgpt10
Created November 4, 2017 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgpt10/6ccec733e41c482c59e1c8b4b8673d68 to your computer and use it in GitHub Desktop.
Save pgpt10/6ccec733e41c482c59e1c8b4b8673d68 to your computer and use it in GitHub Desktop.
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