// // ServerModel.swift // Model file Generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport import Foundation struct ServerModel{ var ret : Int! var msg : String! var data : ServerData! /** * Instantiate the instance using the passed dictionary values to set the properties values */ init(fromDictionary dictionary: NSDictionary){ if let dataData = dictionary["data"] as? NSDictionary{ data = ServerData(fromDictionary: dataData) } msg = dictionary["msg"] as? String ret = dictionary["ret"] as? Int } init(){ data = nil msg = nil ret = nil } /** * Returns all the available property values in the form of NSDictionary object where the key is the approperiate json key and the value is the value of the corresponding property */ func toDictionary() -> NSDictionary { var dictionary = NSMutableDictionary() if data != nil{ dictionary["data"] = data.toDictionary() } if msg != nil{ dictionary["msg"] = msg } if ret != nil{ dictionary["ret"] = ret } return dictionary } }