PersistenceConfig constructor
PersistenceConfig({
- PersistenceConfig_PersistenceMode? persistenceMode,
- PersistenceConfig_SnapshotPeriod? rdbSnapshotPeriod,
- Timestamp? rdbNextSnapshotTime,
- 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;
}