toSafeguardPolicy method
Implementation
SafeguardPolicy toSafeguardPolicy() {
switch (this) {
case 'rely-on-sql-server-replication-agent':
return SafeguardPolicy.relyOnSqlServerReplicationAgent;
case 'exclusive-automatic-truncation':
return SafeguardPolicy.exclusiveAutomaticTruncation;
case 'shared-automatic-truncation':
return SafeguardPolicy.sharedAutomaticTruncation;
}
throw Exception('$this is not known in enum SafeguardPolicy');
}