mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Note Json now has a body
This commit is contained in:
@ -14,10 +14,9 @@ class Note {
|
|||||||
const Note({this.createdAt, this.body});
|
const Note({this.createdAt, this.body});
|
||||||
|
|
||||||
factory Note.fromJson(Map<String, dynamic> json) {
|
factory Note.fromJson(Map<String, dynamic> json) {
|
||||||
print(json)
|
|
||||||
return new Note(
|
return new Note(
|
||||||
createdAt: DateTime.parse(json['createdAt']),
|
createdAt: DateTime.parse(json['createdAt']),
|
||||||
body: json['data'],
|
body: json['body'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user