toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id,
'type': type?.toJson(),
'chat_id': chatId,
'total_count': totalCount,
'notifications': notifications.map((item) => item.toJson()).toList(),
'@type': constructor,
};