public override object Deserialize(IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer) { if ((dictionary != null)) { var projectTracker = new ProjectIssueCategory(); projectTracker.Id = dictionary.GetValue <int>(RedmineKeys.ID); projectTracker.Name = dictionary.GetValue <string>(RedmineKeys.NAME); return(projectTracker); } return(null); }
public override object Deserialize( IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer) { if ((dictionary == null)) { return(null); } var projectTracker = new ProjectIssueCategory { Id = dictionary.GetValue <int>("id"), Name = dictionary.GetValue <string>("name") }; return(projectTracker); }