toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'level': level,
      'story_per_day_count': storyPerDayCount,
      'custom_emoji_reaction_count': customEmojiReactionCount,
      'title_color_count': titleColorCount,
      'profile_accent_color_count': profileAccentColorCount,
      'can_set_profile_background_custom_emoji':
          canSetProfileBackgroundCustomEmoji,
      'accent_color_count': accentColorCount,
      'can_set_background_custom_emoji': canSetBackgroundCustomEmoji,
      'can_set_emoji_status': canSetEmojiStatus,
      'chat_theme_background_count': chatThemeBackgroundCount,
      'can_set_custom_background': canSetCustomBackground,
      'can_set_custom_emoji_sticker_set': canSetCustomEmojiStickerSet,
      'can_recognize_speech': canRecognizeSpeech,
    };