Added constructors using JSONObject.

We've added another constructor to our model classes with a JSONObject as a parameter, and corrected some mistakes.