toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id.toString(),
'title': title,
'name': name,
'thumbnail': thumbnail?.toJson(),
'thumbnail_outline': [for (final e in thumbnailOutline) e.toJson()],
'is_installed': isInstalled,
'is_archived': isArchived,
'is_official': isOfficial,
'sticker_format': stickerFormat.toJson(),
'sticker_type': stickerType.toJson(),
'needs_repainting': needsRepainting,
'is_allowed_as_chat_emoji_status': isAllowedAsChatEmojiStatus,
'is_viewed': isViewed,
'stickers': [for (final e in stickers) e.toJson()],
'emojis': [for (final e in emojis) e.toJson()],
};