toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'features': [for (final e in features) e.toJson()],
  'min_profile_background_custom_emoji_boost_level':
      minProfileBackgroundCustomEmojiBoostLevel,
  'min_background_custom_emoji_boost_level':
      minBackgroundCustomEmojiBoostLevel,
  'min_emoji_status_boost_level': minEmojiStatusBoostLevel,
  'min_chat_theme_background_boost_level': minChatThemeBackgroundBoostLevel,
  'min_custom_background_boost_level': minCustomBackgroundBoostLevel,
  'min_custom_emoji_sticker_set_boost_level':
      minCustomEmojiStickerSetBoostLevel,
  'min_automatic_translation_boost_level': minAutomaticTranslationBoostLevel,
  'min_speech_recognition_boost_level': minSpeechRecognitionBoostLevel,
  'min_sponsored_message_disable_boost_level':
      minSponsoredMessageDisableBoostLevel,
};