toDestinationStatus method
Implementation
DestinationStatus toDestinationStatus() {
switch (this) {
case 'ENABLING':
return DestinationStatus.enabling;
case 'ACTIVE':
return DestinationStatus.active;
case 'DISABLING':
return DestinationStatus.disabling;
case 'DISABLED':
return DestinationStatus.disabled;
case 'ENABLE_FAILED':
return DestinationStatus.enableFailed;
}
throw Exception('$this is not known in enum DestinationStatus');
}