ShopModel.swift 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // ShopModel.swift
  3. // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
  4. import Foundation
  5. import ObjectMapper
  6. class ShopModel : NSObject, Mappable{
  7. var address : String?
  8. var cityId : Int?
  9. var cityName : String?
  10. var contactMobile : String?
  11. var contactName : String?
  12. var createdAt : String?
  13. var deletedAt : AnyObject?
  14. var foodTransLicense : String?
  15. var licenseImg : String?
  16. var logoImg : String?
  17. var mobile : String?
  18. var otherLicense : String?
  19. var proportion : Int?
  20. var provinceId : Int?
  21. var provinceName : String?
  22. var shopDesc : String?
  23. var shopId : Int?
  24. var shopName : String?
  25. var shopShortName : String?
  26. var star : Int?
  27. var status : Int?
  28. var updatedAt : String?
  29. var verifyType : Int?
  30. var isOpen : Bool?
  31. class func newInstance(map: Map) -> Mappable?{
  32. return ShopModel()
  33. }
  34. required init?(map: Map){}
  35. private override init(){}
  36. func mapping(map: Map)
  37. {
  38. address <- map["address"]
  39. cityId <- map["city_id"]
  40. cityName <- map["city_name"]
  41. contactMobile <- map["contact_mobile"]
  42. contactName <- map["contact_name"]
  43. createdAt <- map["created_at"]
  44. deletedAt <- map["deleted_at"]
  45. foodTransLicense <- map["food_trans_license"]
  46. licenseImg <- map["license_img"]
  47. logoImg <- map["logo_img"]
  48. mobile <- map["mobile"]
  49. otherLicense <- map["other_license"]
  50. proportion <- map["proportion"]
  51. provinceId <- map["province_id"]
  52. provinceName <- map["province_name"]
  53. shopDesc <- map["shop_desc"]
  54. shopId <- map["shop_id"]
  55. shopName <- map["shop_name"]
  56. shopShortName <- map["shop_short_name"]
  57. star <- map["star"]
  58. status <- map["status"]
  59. updatedAt <- map["updated_at"]
  60. verifyType <- map["verify_type"]
  61. }
  62. }