create static method
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,
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);
}