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

import Foundation

struct LoginRet{

	var data : LoginRetData!
	var message : String!
	var statusCode : Int!
	var success : Bool!
	var type : String!
	var uuid : String!


	/**
	 * 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 = LoginRetData(fromDictionary: dataData)
			}
		message = dictionary["message"] as? String
		statusCode = dictionary["statusCode"] as? Int
		success = dictionary["success"] as? Bool
		type = dictionary["type"] as? String
		uuid = dictionary["uuid"] as? String
	}

	/**
	 * 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 message != nil{
			dictionary["message"] = message
		}
		if statusCode != nil{
			dictionary["statusCode"] = statusCode
		}
		if success != nil{
			dictionary["success"] = success
		}
		if type != nil{
			dictionary["type"] = type
		}
		if uuid != nil{
			dictionary["uuid"] = uuid
		}
		return dictionary
	}

}