fix: generated new models, fixed reactions

This commit is contained in:
Deven Joshi
2021-04-14 19:31:59 +05:30
parent 2d11e32700
commit 834e29c3cc
11 changed files with 65 additions and 61 deletions
@@ -9,7 +9,7 @@ part of 'read.dart';
Read _$ReadFromJson(Map<String, dynamic> json) {
return Read(
lastRead: DateTime.parse(json['last_read'] as String),
user: User.fromJson(json['user'] as Map<String, dynamic>?),
user: User.fromJson(json['user'] as Map<String, dynamic>),
unreadMessages: json['unread_messages'] as int? ?? 0,
);
}