Created
July 20, 2019 15:17
-
-
Save suprie/e91671922380d6c46e894ae9592860f3 to your computer and use it in GitHub Desktop.
This file contains 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 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