From d2af7534cc75d477caba12855d0a7920b3163b83 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 17 May 2018 17:59:21 +0200 Subject: [PATCH] Note Json now has a body --- lib/main.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 3f4aa8b7..4207638e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,10 +14,9 @@ class Note { const Note({this.createdAt, this.body}); factory Note.fromJson(Map json) { - print(json) return new Note( createdAt: DateTime.parse(json['createdAt']), - body: json['data'], + body: json['body'], ); } }