Re-implemented getting tasks with the new seperate endpoint #39
|
@ -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,
|
||||
|
|
Reference in New Issue