public TodoItem(todoitem input) { this.Completed = bool.Parse(input.completed.First().Value); this.Name = input.content; this.ID = int.Parse(input.id.First().Value); this.TodoID = int.Parse(input.todolistid.First().Value); }