toTestGridSessionStatus method

TestGridSessionStatus toTestGridSessionStatus()

Implementation

TestGridSessionStatus toTestGridSessionStatus() {
  switch (this) {
    case 'ACTIVE':
      return TestGridSessionStatus.active;
    case 'CLOSED':
      return TestGridSessionStatus.closed;
    case 'ERRORED':
      return TestGridSessionStatus.errored;
  }
  throw Exception('$this is not known in enum TestGridSessionStatus');
}