title: Proper practice of filling a model class in iPhone
body: <p>I have a simple doubt in the process of populating my model class. I get a web service response that has a jsonDictionary with 10 - 15(it can be any figure)keyValue pairs in it. I normally used to parse this jSON to an NSDictionary using another parser class and I fill in the model class from the view controller using the NSDictionary.
  But recently I saw in another code. The NSDictionary created from parsing the JSON string, is passed to a class that has static methods. And the model is filled from within the static method in that class as shown below</p>
  
  <p><strong>Class Name:</strong> ModelMaker</p>
  
  <p><strong>Static methods</strong> eg:</p>
  
  <pre><code>+ (MyModel1 *)fillInMyModelFromDictionay:(NSDictionary *)myDictionary;
  + (MyModel2 *)fillInMyModel2FromDictionay:(NSDictionary *)myDictionary2;
  
  +(MyModel1 *)fillInMyModelFromDictionay:(NSDictionary *)myDictionary 
  {
      MyModel1 *myModel1 = [[MyModel1 alloc] init];
      myModel1.name = [myDictionary objectForKey:@"name"];
      myModel1.age = [myDictionary objectForKey:@"age"];
      return myModel1;
  }
  </code></pre>
  
  <p>So which approach do you think is a better one. Filling my model object from within the view controller itself or using a class as I have shown above, whose sole purpose is to fill in the model objects.</p>