toAutomaticFailoverStatus method
Implementation
AutomaticFailoverStatus toAutomaticFailoverStatus() {
switch (this) {
case 'enabled':
return AutomaticFailoverStatus.enabled;
case 'disabled':
return AutomaticFailoverStatus.disabled;
case 'enabling':
return AutomaticFailoverStatus.enabling;
case 'disabling':
return AutomaticFailoverStatus.disabling;
}
throw Exception('$this is not known in enum AutomaticFailoverStatus');
}