create static method

NotificationSound create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "notificationSound",
  3. String special_return_type = "notificationSound",
  4. num? id,
  5. num? duration,
  6. num? date,
  7. String? title,
  8. String? data,
  9. 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);
}