// // HotpicPlayerEntity.swift // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport import Foundation import ObjectMapper class HotpicPlayerEntity : NSObject, NSCoding, Mappable{ var application : String? var createTime : String? var creator : String? var distributeFactor : Int? var id : String? var infoId : String? var picUrl : String? var sequence : String? var title : String? var updateTime : String? var url : String? class func newInstance(map: Map) -> Mappable?{ return HotpicPlayerEntity() } required init?(map: Map){} private override init(){} func mapping(map: Map) { application <- map["application"] createTime <- map["createTime"] creator <- map["creator"] distributeFactor <- map["distributeFactor"] id <- map["id"] infoId <- map["infoId"] picUrl <- map["picUrl"] sequence <- map["sequence"] title <- map["title"] updateTime <- map["updateTime"] url <- map["url"] } /** * NSCoding required initializer. * Fills the data from the passed decoder */ @objc required init(coder aDecoder: NSCoder) { application = aDecoder.decodeObject(forKey: "application") as? String createTime = aDecoder.decodeObject(forKey: "createTime") as? String creator = aDecoder.decodeObject(forKey: "creator") as? String distributeFactor = aDecoder.decodeObject(forKey: "distributeFactor") as? Int id = aDecoder.decodeObject(forKey: "id") as? String infoId = aDecoder.decodeObject(forKey: "infoId") as? String picUrl = aDecoder.decodeObject(forKey: "picUrl") as? String sequence = aDecoder.decodeObject(forKey: "sequence") as? String title = aDecoder.decodeObject(forKey: "title") as? String updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String url = aDecoder.decodeObject(forKey: "url") as? String } /** * NSCoding required method. * Encodes mode properties into the decoder */ @objc func encode(with aCoder: NSCoder) { if application != nil{ aCoder.encode(application, forKey: "application") } if createTime != nil{ aCoder.encode(createTime, forKey: "createTime") } if creator != nil{ aCoder.encode(creator, forKey: "creator") } if distributeFactor != nil{ aCoder.encode(distributeFactor, forKey: "distributeFactor") } if id != nil{ aCoder.encode(id, forKey: "id") } if infoId != nil{ aCoder.encode(infoId, forKey: "infoId") } if picUrl != nil{ aCoder.encode(picUrl, forKey: "picUrl") } if sequence != nil{ aCoder.encode(sequence, forKey: "sequence") } if title != nil{ aCoder.encode(title, forKey: "title") } if updateTime != nil{ aCoder.encode(updateTime, forKey: "updateTime") } if url != nil{ aCoder.encode(url, forKey: "url") } } }