//
//	Data.swift
//	Model file Generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation

struct ServerData{

	var appServer : String!
	var chatServer : String!
	var downServer : String!
	var fileServer : String!
	var id : Int!
	var serverID : String!
	var status : Int!
	var updateUrl : String!


	/**
	 * Instantiate the instance using the passed dictionary values to set the properties values
	 */
	init(fromDictionary dictionary: NSDictionary){
		appServer = dictionary["appServer"] as? String
		chatServer = dictionary["chatServer"] as? String
		downServer = dictionary["downServer"] as? String
		fileServer = dictionary["fileServer"] as? String
		id = dictionary["id"] as? Int
		serverID = dictionary["serverID"] as? String
		status = dictionary["status"] as? Int
		updateUrl = dictionary["updateUrl"] as? String
	}
    init(){
        appServer = nil
        chatServer = nil
        downServer = nil
        fileServer = nil
        id = nil
        serverID = nil
        status = nil
        updateUrl = 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 appServer != nil{
			dictionary["appServer"] = appServer
		}
		if chatServer != nil{
			dictionary["chatServer"] = chatServer
		}
		if downServer != nil{
			dictionary["downServer"] = downServer
		}
		if fileServer != nil{
			dictionary["fileServer"] = fileServer
		}
		if id != nil{
			dictionary["id"] = id
		}
		if serverID != nil{
			dictionary["serverID"] = serverID
		}
		if status != nil{
			dictionary["status"] = status
		}
		if updateUrl != nil{
			dictionary["updateUrl"] = updateUrl
		}
		return dictionary
	}

}