updateSettings method

Future<Either<BaseException, void>> updateSettings(
  1. List<PushSettingModel> settings
)

Implementation

Future<Either<BaseException, void>> updateSettings(List<PushSettingModel> settings) {
  return patch(
    NotificationsUrls.updateSettings,
    body: {
      'updatedSettings': settings.map((e) => e.toMap()).toList(),
    },
    mapper: (json) {},
  );
}