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(
|
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']),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue