// // StringLyingGestureIntroduce.swift // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport import Foundation class StringLyingGestureIntroduce : NSObject, NSCoding{ var subTitle : String! var suggestedText1 : String! var suggestedText2 : String! var suggestedText3 : String! var suggestedText4 : String! var suggestedText5 : String! var tipsText : String! var title : String! /** * Instantiate the instance using the passed dictionary values to set the properties values */ init(fromDictionary dictionary: [String:Any]){ subTitle = dictionary["subTitle"] as? String suggestedText1 = dictionary["suggestedText1"] as? String suggestedText2 = dictionary["suggestedText2"] as? String suggestedText3 = dictionary["suggestedText3"] as? String suggestedText4 = dictionary["suggestedText4"] as? String suggestedText5 = dictionary["suggestedText5"] as? String tipsText = dictionary["tipsText"] as? String title = dictionary["title"] as? String } /** * Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property */ func toDictionary() -> [String:Any] { var dictionary = [String:Any]() if subTitle != nil{ dictionary["subTitle"] = subTitle } if suggestedText1 != nil{ dictionary["suggestedText1"] = suggestedText1 } if suggestedText2 != nil{ dictionary["suggestedText2"] = suggestedText2 } if suggestedText3 != nil{ dictionary["suggestedText3"] = suggestedText3 } if suggestedText4 != nil{ dictionary["suggestedText4"] = suggestedText4 } if suggestedText5 != nil{ dictionary["suggestedText5"] = suggestedText5 } if tipsText != nil{ dictionary["tipsText"] = tipsText } if title != nil{ dictionary["title"] = title } return dictionary } /** * NSCoding required initializer. * Fills the data from the passed decoder */ @objc required init(coder aDecoder: NSCoder) { subTitle = aDecoder.decodeObject(forKey: "subTitle") as? String suggestedText1 = aDecoder.decodeObject(forKey: "suggestedText1") as? String suggestedText2 = aDecoder.decodeObject(forKey: "suggestedText2") as? String suggestedText3 = aDecoder.decodeObject(forKey: "suggestedText3") as? String suggestedText4 = aDecoder.decodeObject(forKey: "suggestedText4") as? String suggestedText5 = aDecoder.decodeObject(forKey: "suggestedText5") as? String tipsText = aDecoder.decodeObject(forKey: "tipsText") as? String title = aDecoder.decodeObject(forKey: "title") as? String } /** * NSCoding required method. * Encodes mode properties into the decoder */ @objc func encode(with aCoder: NSCoder) { if subTitle != nil{ aCoder.encode(subTitle, forKey: "subTitle") } if suggestedText1 != nil{ aCoder.encode(suggestedText1, forKey: "suggestedText1") } if suggestedText2 != nil{ aCoder.encode(suggestedText2, forKey: "suggestedText2") } if suggestedText3 != nil{ aCoder.encode(suggestedText3, forKey: "suggestedText3") } if suggestedText4 != nil{ aCoder.encode(suggestedText4, forKey: "suggestedText4") } if suggestedText5 != nil{ aCoder.encode(suggestedText5, forKey: "suggestedText5") } if tipsText != nil{ aCoder.encode(tipsText, forKey: "tipsText") } if title != nil{ aCoder.encode(title, forKey: "title") } } }