D1APP-48 model synced with server data
This commit is contained in:
parent
a96eabd30f
commit
de46fe36f4
|
|
@ -17,9 +17,7 @@ class ChatRoom {
|
|||
|
||||
factory ChatRoom.fromJson(Map<String, dynamic> json) => ChatRoom(
|
||||
id: json['id'],
|
||||
type: json['type'] == 'ادمین'
|
||||
? 'پشتیبانی اپلیکیشن'
|
||||
: 'سردبیر رادار' + json['type'],
|
||||
type: json['type'],
|
||||
updatedAt: json['updatedAt'],
|
||||
unread: json['unread'],
|
||||
lastMessage: LastMessage.fromJson(json['lastMessage']),
|
||||
|
|
|
|||
Loading…
Reference in New Issue