Esempio n. 1
0
 public School(JsonObject jsonObject)
 {
     JsonObject schoolObject = jsonObject.GetNamedObject(schoolKey, null);
     if (schoolObject != null)
     {
         Id = schoolObject.GetNamedString(idKey, "");
         Name = schoolObject.GetNamedString(nameKey, "");
     }
     Type = jsonObject.GetNamedString(typeKey);
 }
        public School(JsonObject jsonObject)
        {
            JsonObject schoolObject = jsonObject.GetNamedObject(schoolKey, null);

            if (schoolObject != null)
            {
                Id   = schoolObject.GetNamedString(idKey, "");
                Name = schoolObject.GetNamedString(nameKey, "");
            }
            Type = jsonObject.GetNamedString(typeKey);
        }