fromMap static method
override
Construct from Map.
Implementation
static UpdateUnreadChatCount? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var chat_list = ChatList.fromMap(_map['chat_list'])!;
var total_count = _map['total_count']! as int;
var unread_count = _map['unread_count']! as int;
var unread_unmuted_count = _map['unread_unmuted_count']! as int;
var marked_as_unread_count = _map['marked_as_unread_count']! as int;
var marked_as_unread_unmuted_count =
_map['marked_as_unread_unmuted_count']! as int;
return UpdateUnreadChatCount(
extra: extra,
clientId: clientId,
chat_list: chat_list,
total_count: total_count,
unread_count: unread_count,
unread_unmuted_count: unread_unmuted_count,
marked_as_unread_count: marked_as_unread_count,
marked_as_unread_unmuted_count: marked_as_unread_unmuted_count,
);
}