call method
Implementation
@override
Future<void> call() async {
final api = await ref.read(energyManagementV3ApiProvider.future);
final body = DealerNotificationSettingsUpdateV3Body(
createOnly: true,
sendShutdowns: ref.read(showShutdownNotificationsPrefProvider),
sendWarnings: ref.read(showWarningNotificationsPrefProvider),
sendMaintenanceNotices:
ref.read(showMaintenanceNotificationsPrefProvider),
sendLongRunningNotices:
ref.read(showLongRunningNotificationsPrefProvider),
sendGeneratorRunningNotices:
ref.read(showGeneratorRunningNotificationsPrefProvider),
sendConnectionNotices: ref.read(showConnectionNotificationsPrefProvider),
sendNotices: ref.read(showNoticeNotificationsPrefProvider),
sendNotificationEmails: ref.read(showEmailNotificationsPrefProvider),
);
await api.kemApiV3DealerSettingsNotificationPost(body: body);
}