toServerCatalogStatus method
Implementation
ServerCatalogStatus toServerCatalogStatus() {
switch (this) {
case 'NOT_IMPORTED':
return ServerCatalogStatus.notImported;
case 'IMPORTING':
return ServerCatalogStatus.importing;
case 'AVAILABLE':
return ServerCatalogStatus.available;
case 'DELETED':
return ServerCatalogStatus.deleted;
case 'EXPIRED':
return ServerCatalogStatus.expired;
}
throw Exception('$this is not known in enum ServerCatalogStatus');
}