create static method

UpdateNotification create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateNotification",
  3. String special_return_type = "update",
  4. num? notification_group_id,
  5. Notification? notification,
})
override

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

Implementation

static UpdateNotification create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateNotification",
  String special_return_type = "update",
  num? notification_group_id,
  Notification? notification,
}) {
  // UpdateNotification updateNotification = UpdateNotification({
  final Map updateNotification_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "notification_group_id": notification_group_id,
    "notification": (notification != null) ? notification.toJson() : null,
  };

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

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