create static method
NotificationSound
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "notificationSound",
- String special_return_type = "notificationSound",
- num? id,
- num? duration,
- num? date,
- String? title,
- String? data,
- File? sound,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static NotificationSound create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "notificationSound",
String special_return_type = "notificationSound",
num? id,
num? duration,
num? date,
String? title,
String? data,
File? sound,
}) {
// NotificationSound notificationSound = NotificationSound({
final Map notificationSound_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"duration": duration,
"date": date,
"title": title,
"data": data,
"sound": (sound != null) ? sound.toJson() : null,
};
notificationSound_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (notificationSound_data_create_json.containsKey(key) == false) {
notificationSound_data_create_json[key] = value;
}
});
}
return NotificationSound(notificationSound_data_create_json);
}