toManagedTerminationProtection method
Implementation
ManagedTerminationProtection toManagedTerminationProtection() {
switch (this) {
case 'ENABLED':
return ManagedTerminationProtection.enabled;
case 'DISABLED':
return ManagedTerminationProtection.disabled;
}
throw Exception('$this is not known in enum ManagedTerminationProtection');
}