public TodoLists(todolistsTodolist input) { this.CompletedCount = int.Parse(input.completedcount.First().Value); this.Description = input.description; this.ID = int.Parse(input.id.First().Value); this.Name = input.name; this.Position = int.Parse(input.position.First().Value); this.ProjectID = int.Parse(input.projectid.First().Value); this.TimeTracked = bool.Parse(input.tracked.First().Value); }