Re-implemented getting tasks with the new seperate endpoint #39

Open
konrad wants to merge 34 commits from feature/task-list into master
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 413c2703e6 - Show all commits

View File

@ -27,7 +27,9 @@ class Task {
reminders = (json['reminderDates'] as List<dynamic>)
?.map((r) => DateTime.parse(r))
?.toList(),
due = DateTime.parse(json['dueDate']),
due = json['dueDate'].toString() == 'null'
? null
: DateTime.parse(json['dueDate']),
description = json['description'],
text = json['text'],
done = json['done'],