toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'type': type.toJson(),
'total_count': totalCount,
'is_chosen': isChosen,
'used_sender_id': usedSenderId?.toJson(),
'recent_sender_ids': [for (final e in recentSenderIds) e.toJson()],
};