//
//  Place.swift
//  Json
//
//  Created by Keith Welch on 9/19/15.
//  Copyright © 2015 Keith Welch. All rights reserved.
//

import UIKit

class Place: NSObject {

    func initWithJSONDictionary(jsonDictionary:NSDictionary) -> Place {
        
            // Assign all properties with keyed values from the dictionary
            title = jsonDictionary ["title"] as! String
            city = jsonDictionary ["city"] as! String
            latitude = jsonDictionary ["latitude"] as! NSNumber
            longitude = jsonDictionary ["longitude"] as! NSNumber
        
        return self.self
    }
    
    var title: String = ""
    var city: String = ""
    var latitude: NSNumber = 0
    var longitude: NSNumber = 0
}
