We’re still making some behind the scenes changes so that we can cache api responses using CoreData. Today we’ll restore our CodingKeys from our git repo in preparation for making our model conform to NSManagedObject
.
- Open
Pod.swift
- Click
Enable Code Review
- Copy & Paste CodingKeys from the right pane to the left
- Add
case thumbnailUrl
private enum CodingKeys: String, CodingKey {
case copyright
case date
case explanation
case hdurl
case mediaType
case serviceVersion
case title
case url
case thumbnailUrl
}