toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "use_default_mute_for": useDefaultMuteFor,
    "mute_for": muteFor,
    "use_default_sound": useDefaultSound,
    "sound_id": soundId,
    "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,
    "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,
  };
}