title: swift3 parsing with model issue
body: <p>Hello I am trying to parse through this json file: <a href="http://pastebin.com/TCdkJnvZ" rel="nofollow noreferrer">http://pastebin.com/TCdkJnvZ</a></p>
  
  <p>Here is the class I made of the information I want to parse out:</p>
  
  <pre><code>public class Recipe: NSObject {
  
    var recipeID : NSNumber?
    var categoryName : String?
    var ingredients : [Int : Ingredients]?
    var nutrition : [Nutrition]?
    var imageName : String?
    var instructions : [Int : String]?
  
  }
  
  class Ingredients : NSObject {
  
     var id : NSNumber?
     var name : String?
     var quantity: NSNumber?
     var unit : String?
  
  }
  
  class  Nutrition : NSObject {
  
    var serving : String?
    var calories : NSNumber?
    var fat : String?
    var carbs : NSNumber?
  
   }
  </code></pre>
  
  <p>This image is the current issue.. I am really not sure what I am doing wrong here.. so if I can get any help on fixing my logic/issue it would be appreciated.</p>
  
  <pre><code> func parseToJSON(data: Any) {
  
      // add meals to here
      var recipes : [Recipe]
      // single meals here
      var meals : Recipe
  
      do {
  
          if let json = try JSONSerialization.jsonObject(with: data as! Data) as? [String: Any],
          meals.recipeID == json["recipeID"] as! NSNumber? ,
          meals.imageName == json["ImageURL"] as! String?,
          //meals.instructions == meals.parseInstructions(instructions: (json["Instructions"] as! String)),
          meals.categoryName == "Meals" ,
  
          let ingredients = json["Ingredients"] as! [[String: Any]]? {
  
                  for items in ingredients {
                      var i : Int = 0
                      var groceryItems : Ingredients
  
                      groceryItems.id = items["IngredientID"] as? NSNumber
                      groceryItems.name = items["Name"] as? String
                      groceryItems.quantity = items["Quantity"] as? NSNumber
                      groceryItems.unit = items["Unit"] as? String
  
                      meals.ingredients?[i] = groceryItems
                  }
              };
  
          let nutritionInfo = json["NutritionInfo"] as! [[String: Any]]? {
  
                  for items in nutritionInfo {
  
                      var nutrition : Nutrition
  
                      nutrition.serving = items["SingularYieldUnit"] as? String
                      nutrition.calories = items["TotalCalories"] as? NSNumber
                      nutrition.fat = items["TotalFat"] as? String
                      nutrition.carbs = items["TotalCarbs"] as NSNumber
  
                      meals.nutrition = nutrition
                  }
          };
      }
      catch{
  
      }
  
  }
  </code></pre>