toDomainControllerStatus method
Implementation
DomainControllerStatus toDomainControllerStatus() {
switch (this) {
case 'Creating':
return DomainControllerStatus.creating;
case 'Active':
return DomainControllerStatus.active;
case 'Impaired':
return DomainControllerStatus.impaired;
case 'Restoring':
return DomainControllerStatus.restoring;
case 'Deleting':
return DomainControllerStatus.deleting;
case 'Deleted':
return DomainControllerStatus.deleted;
case 'Failed':
return DomainControllerStatus.failed;
}
throw Exception('$this is not known in enum DomainControllerStatus');
}