create static method

UpdateScopeNotificationSettings create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateScopeNotificationSettings",
  3. String special_return_type = "update",
  4. NotificationSettingsScope? scope,
  5. ScopeNotificationSettings? notification_settings,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static UpdateScopeNotificationSettings create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateScopeNotificationSettings",
  String special_return_type = "update",
  NotificationSettingsScope? scope,
  ScopeNotificationSettings? notification_settings,
}) {
  // UpdateScopeNotificationSettings updateScopeNotificationSettings = UpdateScopeNotificationSettings({
  final Map updateScopeNotificationSettings_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "scope": (scope != null) ? scope.toJson() : null,
    "notification_settings": (notification_settings != null) ? notification_settings.toJson() : null,
  };

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

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