toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'updateUnreadChatCount',
    if (extra != null) '@extra': extra,
    '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
  };
}