Skip to content

Instantly share code, notes, and snippets.

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 projectxcappe/393075dd801be2aa5c81edf6b07d76b6 to your computer and use it in GitHub Desktop.
Save projectxcappe/393075dd801be2aa5c81edf6b07d76b6 to your computer and use it in GitHub Desktop.
struct VenueListData: Codable {
let data: [VenueList]
let msg: String
let status: Int
let statuscode: Int
}
struct VenueList: Codable {
let venue_id: String
let place_id: String
let name: String
let description: String
let picture: String //what is the difference btwn logo and picture and name?
let logo: String
let venue_map: String
let food: [VenueFood]
}
struct VenueFood: Codable, Equatable {
let food_id: String
let venue_id: String
let category_id: String
let name: String
let description: String
let price: String
let pic: String
static func == (lhs: VenueFood, rhs: VenueFood) -> Bool {
return
lhs.food_id == rhs.food_id &&
lhs.venue_id == rhs.venue_id &&
lhs.category_id == rhs.category_id &&
lhs.name == rhs.name &&
lhs.description == rhs.description &&
lhs.price == rhs.price &&
lhs.pic == rhs.pic &&
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment