From 4abe8c48a0918ecb834f548af85ad7015e0f1757 Mon Sep 17 00:00:00 2001 From: Severin Baschung Date: Fri, 9 Jul 2021 10:39:19 +0200 Subject: [PATCH] Event.fromJson 'start'-key assignment fixed --- lib/src/models/event.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/models/event.dart b/lib/src/models/event.dart index 355a0d65..6431a21e 100644 --- a/lib/src/models/event.dart +++ b/lib/src/models/event.dart @@ -69,7 +69,7 @@ class Event { title = json['title']; description = json['description']; - final int? startTimestamp = json['start']; + final int? startTimestamp = json['eventStartDate']; final String? startLocationName = json['startTimeZone']; var startTimeZone = timeZoneDatabase.locations[startLocationName]; startTimeZone ??= local; @@ -77,7 +77,7 @@ class Event { ? TZDateTime.fromMillisecondsSinceEpoch(startTimeZone, startTimestamp) : TZDateTime.now(local); - final int? endTimestamp = json['end']; + final int? endTimestamp = json['eventEndDate']; final String? endLocationName = json['endTimeZone']; var endLocation = timeZoneDatabase.locations[endLocationName]; endLocation ??= local;