toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'mute_for': muteFor,
      'sound_id': soundId.toString(),
      'show_preview': showPreview,
      'use_default_mute_stories': useDefaultMuteStories,
      'mute_stories': muteStories,
      'story_sound_id': storySoundId.toString(),
      'show_story_sender': showStorySender,
      'disable_pinned_message_notifications':
          disablePinnedMessageNotifications,
      'disable_mention_notifications': disableMentionNotifications,
    };