public object Deserialize(JsonValue json, JsonMapper mapper) { EducationEntry entry = null; if ( json != null && !json.IsNull ) { entry = new EducationEntry(); entry.Type = json.ContainsName("type" ) ? json.GetValue<string>("type") : String.Empty; entry.School = mapper.Deserialize<Reference >(json.GetValue("school" )); entry.Year = mapper.Deserialize<Reference >(json.GetValue("year" )); entry.Concentration = mapper.Deserialize<List<Reference>>(json.GetValue("concentration")); } return entry; }
public object Deserialize(JsonValue json, JsonMapper mapper) { EducationEntry entry = null; if (json != null && !json.IsNull) { entry = new EducationEntry(); entry.Type = json.ContainsName("type") ? json.GetValue <string>("type") : String.Empty; entry.School = mapper.Deserialize <Reference>(json.GetValue("school")); entry.Year = mapper.Deserialize <Reference>(json.GetValue("year")); entry.Concentration = mapper.Deserialize <List <Reference> >(json.GetValue("concentration")); } return(entry); }