PersistenceConfig constructor

PersistenceConfig({
  1. PersistenceConfig_PersistenceMode? persistenceMode,
  2. PersistenceConfig_SnapshotPeriod? rdbSnapshotPeriod,
  3. Timestamp? rdbNextSnapshotTime,
  4. Timestamp? rdbSnapshotStartTime,
})

Implementation

factory PersistenceConfig({
  PersistenceConfig_PersistenceMode? persistenceMode,
  PersistenceConfig_SnapshotPeriod? rdbSnapshotPeriod,
  $2.Timestamp? rdbNextSnapshotTime,
  $2.Timestamp? rdbSnapshotStartTime,
}) {
  final $result = create();
  if (persistenceMode != null) {
    $result.persistenceMode = persistenceMode;
  }
  if (rdbSnapshotPeriod != null) {
    $result.rdbSnapshotPeriod = rdbSnapshotPeriod;
  }
  if (rdbNextSnapshotTime != null) {
    $result.rdbNextSnapshotTime = rdbNextSnapshotTime;
  }
  if (rdbSnapshotStartTime != null) {
    $result.rdbSnapshotStartTime = rdbSnapshotStartTime;
  }
  return $result;
}