123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- //
- // ProductDetailModel.swift
- // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
- import Foundation
- import ObjectMapper
- class ProductDetailModel : NSObject, Mappable{
- var attributeCategoryId : Int?
- var bigImg : String?
- var categoryId1 : Int?
- var categoryId2 : Int?
- var categoryId3 : Int?
- var city : [Int]?
- var deliverType : Int?
- var desc : String?
- var id : Int?
- var img : String?
- var imgs : [String]?
- var isConfirmSale : Int?
- var label : [ProductDetailLabelModel]?
- var limitNumber : Int?
- var limitType : String?
- var name : String?
- var otherCode : String?
- var parameter : [ProductDetailParameterModel]?
- var receiveTime : String?
- var receiveType : Int?
- var report : [String]?
- var saleName : String?
- var shopId : Int?
- var shopName : String?
- var sku : [ProductDetailSkuModel]?
- var spec : [ProductDetailSpecNameModel]?
- var spuCode : String?
- var storeTypeIds : String?
- var subtitle : String?
- var video : String?
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailModel()
- }
- required init?(map: Map){}
- private override init(){}
- func mapping(map: Map)
- {
- attributeCategoryId <- map["attribute_category_id"]
- bigImg <- map["big_img"]
- categoryId1 <- map["category_id1"]
- categoryId2 <- map["category_id2"]
- categoryId3 <- map["category_id3"]
- city <- map["city"]
- deliverType <- map["deliver_type"]
- desc <- map["desc"]
- id <- map["id"]
- img <- map["img"]
- imgs <- map["imgs"]
- isConfirmSale <- map["is_confirm_sale"]
- label <- map["label"]
- limitNumber <- map["limit_number"]
- limitType <- map["limit_type"]
- name <- map["name"]
- otherCode <- map["other_code"]
- parameter <- map["parameter"]
- receiveTime <- map["receive_time"]
- receiveType <- map["receive_type"]
- report <- map["report"]
- saleName <- map["sale_name"]
- shopId <- map["shop_id"]
- shopName <- map["shop_name"]
- sku <- map["sku"]
- spec <- map["spec"]
- spuCode <- map["spu_code"]
- storeTypeIds <- map["store_type_ids"]
- subtitle <- map["subtitle"]
- video <- map["video"]
-
- }
- }
- class ProductDetailLabelModel : NSObject, Mappable{
-
- var isMain : Int?
- var labelId : Int?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailLabelModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- isMain <- map["is_main"]
- labelId <- map["label_id"]
-
- }
-
- }
- class ProductDetailParameterModel : NSObject, Mappable{
-
- var id : Int?
- var name : String?
- var value : String?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailParameterModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- id <- map["id"]
- name <- map["name"]
- value <- map["value"]
-
- }
- }
- class ProductDetailSkuModel : NSObject, Mappable{
-
- var costPrice : Int?
- var id : Int?
- var isMain : Int?
- var names : [ProductDetailSkuNameModel]?
- var originPrice : Int?
- var price : Int?
- var stock : Int?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailSkuModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- costPrice <- map["cost_price"]
- id <- map["id"]
- isMain <- map["is_main"]
- names <- map["names"]
- originPrice <- map["origin_price"]
- price <- map["price"]
- stock <- map["stock"]
-
- }
-
- }
- class ProductDetailSkuNameModel : NSObject, Mappable{
-
- var attributeItemId : Int?
- var name : String?
- var value : String?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailSkuNameModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- attributeItemId <- map["attribute_item_id"]
- name <- map["name"]
- value <- map["value"]
-
- }
- }
- class ProductDetailSpecNameModel : NSObject, Mappable{
-
- var attributeItemId : Int?
- var name : String?
- var value : [String]?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return ProductDetailSpecNameModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- attributeItemId <- map["attribute_item_id"]
- name <- map["name"]
- value <- map["value"]
-
- }
-
- }
|