toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'use_default_mute_for': useDefaultMuteFor,
      'mute_for': muteFor,
      'use_default_sound': useDefaultSound,
      'sound_id': soundId.toString(),
      'use_default_show_preview': useDefaultShowPreview,
      'show_preview': showPreview,
      'use_default_mute_stories': useDefaultMuteStories,
      'mute_stories': muteStories,
      'use_default_story_sound': useDefaultStorySound,
      'story_sound_id': storySoundId.toString(),
      'use_default_show_story_sender': useDefaultShowStorySender,
      'show_story_sender': showStorySender,
      'use_default_disable_pinned_message_notifications':
          useDefaultDisablePinnedMessageNotifications,
      'disable_pinned_message_notifications':
          disablePinnedMessageNotifications,
      'use_default_disable_mention_notifications':
          useDefaultDisableMentionNotifications,
      'disable_mention_notifications': disableMentionNotifications,
    };