toEnvironmentLifecycleStatus method

EnvironmentLifecycleStatus toEnvironmentLifecycleStatus()

Implementation

EnvironmentLifecycleStatus toEnvironmentLifecycleStatus() {
  switch (this) {
    case 'CREATING':
      return EnvironmentLifecycleStatus.creating;
    case 'CREATED':
      return EnvironmentLifecycleStatus.created;
    case 'CREATE_FAILED':
      return EnvironmentLifecycleStatus.createFailed;
    case 'DELETING':
      return EnvironmentLifecycleStatus.deleting;
    case 'DELETE_FAILED':
      return EnvironmentLifecycleStatus.deleteFailed;
  }
  throw Exception('$this is not known in enum EnvironmentLifecycleStatus');
}