public void instantiateCaseTypes()
{
HttpClient client = new HttpClient();
string json = client.getCaseTypes();
JArray caseTypeArray = JArray.Parse(json);
IList<JToken> tokens = caseTypeArray.Children().ToList();
foreach (JToken token in tokens)
{
CaseType caseType = JsonConvert.DeserializeObject<CaseType>(token.ToString());
caseTypes.Add(caseType);
}
}