Skip to content

Instantly share code, notes, and snippets.

@suprie
Created July 20, 2019 15:17
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 suprie/e91671922380d6c46e894ae9592860f3 to your computer and use it in GitHub Desktop.
Save suprie/e91671922380d6c46e894ae9592860f3 to your computer and use it in GitHub Desktop.
Struct MovieData: Codable {
let data: Movies
}
Struct Movies: Codable {
let movies: [Movie]
}
Struct Movie: Codable {
let id: Int
let title: String
let imageURL: String
enum CodingKeys: CodingKey, String {
case id, title
case imageURL = "image_url"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment