toActiveDirectoryStatus method
Implementation
ActiveDirectoryStatus toActiveDirectoryStatus() {
switch (this) {
case 'ACCESS_DENIED':
return ActiveDirectoryStatus.accessDenied;
case 'DETACHED':
return ActiveDirectoryStatus.detached;
case 'JOINED':
return ActiveDirectoryStatus.joined;
case 'JOINING':
return ActiveDirectoryStatus.joining;
case 'NETWORK_ERROR':
return ActiveDirectoryStatus.networkError;
case 'TIMEOUT':
return ActiveDirectoryStatus.timeout;
case 'UNKNOWN_ERROR':
return ActiveDirectoryStatus.unknownError;
}
throw Exception('$this is not known in enum ActiveDirectoryStatus');
}