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 1 additions and 1 deletions
Showing only changes of commit cf9c9b4cb4 - Show all commits

View File

@ -31,7 +31,7 @@ class Task {
description = json['description'],
text = json['text'],
done = json['done'],
owner = User.fromJson(json['createdBy']);
owner = json['createdBy'].toString() == "null" ? null : User.fromJson(json['createdBy']); // There has to be a better way of doing this...
toJSON() => {
'id': id,