D1APP-48 model synced with server data

This commit is contained in:
MohammadTaha Basiri 2022-01-08 14:15:36 +03:30
parent a96eabd30f
commit de46fe36f4
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@ class ChatRoom {
factory ChatRoom.fromJson(Map<String, dynamic> json) => ChatRoom( factory ChatRoom.fromJson(Map<String, dynamic> json) => ChatRoom(
id: json['id'], id: json['id'],
type: json['type'] == 'ادمین' type: json['type'],
? 'پشتیبانی اپلیکیشن'
: 'سردبیر رادار' + json['type'],
updatedAt: json['updatedAt'], updatedAt: json['updatedAt'],
unread: json['unread'], unread: json['unread'],
lastMessage: LastMessage.fromJson(json['lastMessage']), lastMessage: LastMessage.fromJson(json['lastMessage']),