public JsonObject ToJsonObject() { JsonObject schoolObject = new JsonObject(); schoolObject.SetNamedValue(idKey, JsonValue.CreateStringValue(Id)); schoolObject.SetNamedValue(nameKey, JsonValue.CreateStringValue(Name)); JsonObject jsonObject = new JsonObject(); jsonObject.SetNamedValue(schoolKey, schoolObject); jsonObject.SetNamedValue(typeKey, JsonValue.CreateStringValue(Type)); return jsonObject; }
public JsonObject ToJsonObject() { JsonObject schoolObject = new JsonObject(); schoolObject.SetNamedValue(idKey, JsonValue.CreateStringValue(Id)); schoolObject.SetNamedValue(nameKey, JsonValue.CreateStringValue(Name)); JsonObject jsonObject = new JsonObject(); jsonObject.SetNamedValue(schoolKey, schoolObject); jsonObject.SetNamedValue(typeKey, JsonValue.CreateStringValue(Type)); return(jsonObject); }