Note Json now has a body

This commit is contained in:
Vishesh Handa
2018-05-17 17:59:21 +02:00
parent 0230ed50f5
commit d2af7534cc

View File

@ -14,10 +14,9 @@ class Note {
const Note({this.createdAt, this.body});
factory Note.fromJson(Map<String, dynamic> json) {
print(json)
return new Note(
createdAt: DateTime.parse(json['createdAt']),
body: json['data'],
body: json['body'],
);
}
}