toDataRepositoryLifecycle method
Implementation
DataRepositoryLifecycle toDataRepositoryLifecycle() {
switch (this) {
case 'CREATING':
return DataRepositoryLifecycle.creating;
case 'AVAILABLE':
return DataRepositoryLifecycle.available;
case 'MISCONFIGURED':
return DataRepositoryLifecycle.misconfigured;
case 'UPDATING':
return DataRepositoryLifecycle.updating;
case 'DELETING':
return DataRepositoryLifecycle.deleting;
}
throw Exception('$this is not known in enum DataRepositoryLifecycle');
}