toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'top_reactions': [for (final e in topReactions) e.toJson()],
'recent_reactions': [for (final e in recentReactions) e.toJson()],
'popular_reactions': [for (final e in popularReactions) e.toJson()],
'allow_custom_emoji': allowCustomEmoji,
'are_tags': areTags,
'unavailability_reason': unavailabilityReason?.toJson(),
};