From de46fe36f4e4870343378d809600609533d8c811 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Sat, 8 Jan 2022 14:15:36 +0330 Subject: [PATCH] D1APP-48 model synced with server data --- lib/models/chat_room/chat_room.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/models/chat_room/chat_room.dart b/lib/models/chat_room/chat_room.dart index 851e977..a741cc7 100644 --- a/lib/models/chat_room/chat_room.dart +++ b/lib/models/chat_room/chat_room.dart @@ -17,9 +17,7 @@ class ChatRoom { factory ChatRoom.fromJson(Map json) => ChatRoom( id: json['id'], - type: json['type'] == 'ادمین' - ? 'پشتیبانی اپلیکیشن' - : 'سردبیر رادار' + json['type'], + type: json['type'], updatedAt: json['updatedAt'], unread: json['unread'], lastMessage: LastMessage.fromJson(json['lastMessage']),