create static method

ScopeNotificationSettings create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "scopeNotificationSettings",
  3. String special_return_type = "scopeNotificationSettings",
  4. num? mute_for,
  5. num? sound_id,
  6. bool? show_preview,
  7. bool? use_default_mute_stories,
  8. bool? mute_stories,
  9. num? story_sound_id,
  10. bool? show_story_sender,
  11. bool? disable_pinned_message_notifications,
  12. bool? disable_mention_notifications,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static ScopeNotificationSettings create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "scopeNotificationSettings",
  String special_return_type = "scopeNotificationSettings",
  num? mute_for,
  num? sound_id,
  bool? show_preview,
  bool? use_default_mute_stories,
  bool? mute_stories,
  num? story_sound_id,
  bool? show_story_sender,
  bool? disable_pinned_message_notifications,
  bool? disable_mention_notifications,
}) {
  // ScopeNotificationSettings scopeNotificationSettings = ScopeNotificationSettings({
  final Map scopeNotificationSettings_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "mute_for": mute_for,
    "sound_id": sound_id,
    "show_preview": show_preview,
    "use_default_mute_stories": use_default_mute_stories,
    "mute_stories": mute_stories,
    "story_sound_id": story_sound_id,
    "show_story_sender": show_story_sender,
    "disable_pinned_message_notifications": disable_pinned_message_notifications,
    "disable_mention_notifications": disable_mention_notifications,
  };

  scopeNotificationSettings_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (scopeNotificationSettings_data_create_json.containsKey(key) == false) {
        scopeNotificationSettings_data_create_json[key] = value;
      }
    });
  }
  return ScopeNotificationSettings(scopeNotificationSettings_data_create_json);
}