Created
October 7, 2019 10:21
-
-
Save rbreve/29fa9c79d496c05f35b32412e8cb7a39 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 Movie: Decodable, Identifiable { | |
public var id: Int | |
public var name: String | |
public var released: String | |
enum CodingKeys: String, CodingKey { | |
case id = "id" | |
case name = "title" | |
case released = "year" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment