Added additional fromJson() helper that takes a JSONObject as an arg instead of a String