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": sound,
    "use_default_show_preview": useDefaultShowPreview,
    "show_preview": showPreview,
    "use_default_disable_pinned_message_notifications": useDefaultDisablePinnedMessageNotifications,
    "disable_pinned_message_notifications": disablePinnedMessageNotifications,
    "use_default_disable_mention_notifications": useDefaultDisableMentionNotifications,
    "disable_mention_notifications": disableMentionNotifications,
  };
}