Skip to content

Instantly share code, notes, and snippets.

View Akramhussain4's full-sized avatar

Mohammed Akram Hussain Akramhussain4

View GitHub Profile
import Foundation
// MARK: - Chicken
struct Chicken: Codable {
let id: Int
let name, slug: String
let permalink: String
let dateCreated, dateCreatedGmt, dateModified, dateModifiedGmt: String
let type, status: String
let featured: Bool
struct Pizza: Codable {
let id: Int
let name, slug: String
let permalink: String
let dateCreated, dateCreatedGmt, dateModified, dateModifiedGmt: String
let type, status: String
let featured: Bool
let catalogVisibility, pizzaDescription, shortDescription, sku: String
let price, regularPrice, salePrice: String
let dateOnSaleFrom, dateOnSaleFromGmt, dateOnSaleTo, dateOnSaleToGmt: JSONNull?