copyWith method

DealerNotificationSettingsDTO copyWith({
  1. bool? sendShutdowns,
  2. bool? sendWarnings,
  3. bool? sendGeneratorRunningNotices,
  4. bool? sendNotices,
  5. bool? sendConnectionNotices,
  6. bool? sendMaintenanceNotices,
  7. bool? sendLongRunningNotices,
  8. bool? sendNotificationEmails,
})

Implementation

DealerNotificationSettingsDTO copyWith(
    {bool? sendShutdowns,
    bool? sendWarnings,
    bool? sendGeneratorRunningNotices,
    bool? sendNotices,
    bool? sendConnectionNotices,
    bool? sendMaintenanceNotices,
    bool? sendLongRunningNotices,
    bool? sendNotificationEmails}) {
  return DealerNotificationSettingsDTO(
      sendShutdowns: sendShutdowns ?? this.sendShutdowns,
      sendWarnings: sendWarnings ?? this.sendWarnings,
      sendGeneratorRunningNotices:
          sendGeneratorRunningNotices ?? this.sendGeneratorRunningNotices,
      sendNotices: sendNotices ?? this.sendNotices,
      sendConnectionNotices:
          sendConnectionNotices ?? this.sendConnectionNotices,
      sendMaintenanceNotices:
          sendMaintenanceNotices ?? this.sendMaintenanceNotices,
      sendLongRunningNotices:
          sendLongRunningNotices ?? this.sendLongRunningNotices,
      sendNotificationEmails:
          sendNotificationEmails ?? this.sendNotificationEmails);
}