Last active
December 30, 2020 10:41
-
-
Save mzeeshanid/aa4bc2d968b2c22aa8c9f59003d68224 to your computer and use it in GitHub Desktop.
class declaration for models
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
class Product { | |
var id: Int | |
var name: String | |
var image: String | |
var variants: [Variant] | |
} | |
class Variant { | |
var id: Int | |
var name: String | |
var price: Double | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment