create static method
NotificationSounds
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "notificationSounds",
- String special_return_type = "notificationSounds",
- List<
NotificationSound> ? notification_sounds,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static NotificationSounds create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "notificationSounds",
String special_return_type = "notificationSounds",
List<NotificationSound>? notification_sounds,
}) {
// NotificationSounds notificationSounds = NotificationSounds({
final Map notificationSounds_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"notification_sounds": (notification_sounds != null) ? notification_sounds.toJson() : null,
};
notificationSounds_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (notificationSounds_data_create_json.containsKey(key) == false) {
notificationSounds_data_create_json[key] = value;
}
});
}
return NotificationSounds(notificationSounds_data_create_json);
}