/**
 * Copyright IBM Corp. 2016, 2025
 * SPDX-License-Identifier: BUSL-1.1
 */

import ApplicationSerializer from '../application';

export default class PkiTidySerializer extends ApplicationSerializer {
  serialize(snapshot, tidyType) {
    const data = super.serialize(snapshot);
    if (tidyType === 'manual') {
      delete data?.enabled;
      delete data?.intervalDuration;
      delete data?.minStartupBackoffDuration;
      delete data?.maxStartupBackoffDuration;
    }
    return data;
  }
}
