Last active
July 12, 2017 17:33
-
-
Save Ravi61/2f78b6884c6069f909dc6552271ca243 to your computer and use it in GitHub Desktop.
BattleShip model without URL and Date usage
This file contains hidden or 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 BattleShip: Codable { | |
| var name: String | |
| var model: String | |
| var manufacturer: String | |
| var hyperdriveRating: Double | |
| var starshipClass: String | |
| var created: String | |
| var url: String | |
| enum CodingKeys: String, CodingKey { | |
| case name | |
| case model | |
| case manufacturer | |
| case hyperdriveRating = "hyperdrive_rating" | |
| case starshipClass = "starship_class" | |
| case created | |
| case url | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment