We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4e824 commit ff8d582Copy full SHA for ff8d582
1 file changed
lib/src/models/notification.dart
@@ -38,10 +38,11 @@ class NotificationListModel with _$NotificationListModel {
38
39
factory NotificationListModel.fromPiefed(JsonMap json) =>
40
NotificationListModel(
41
- items: (json['items'] as List<dynamic>)
42
- .map((notif) => NotificationModel.fromPiefed(notif as JsonMap))
43
- .toList(),
44
- nextPage: null); // NotificationListModel
+ items: (json['items'] as List<dynamic>)
+ .map((notif) => NotificationModel.fromPiefed(notif as JsonMap))
+ .toList(),
+ nextPage: mbinCalcNextPaginationPage(json['pagination'] as JsonMap),
45
+ ); // NotificationListModel
46
}
47
48
@freezed
0 commit comments