toMultiplexState method

MultiplexState toMultiplexState()

Implementation

MultiplexState toMultiplexState() {
  switch (this) {
    case 'CREATING':
      return MultiplexState.creating;
    case 'CREATE_FAILED':
      return MultiplexState.createFailed;
    case 'IDLE':
      return MultiplexState.idle;
    case 'STARTING':
      return MultiplexState.starting;
    case 'RUNNING':
      return MultiplexState.running;
    case 'RECOVERING':
      return MultiplexState.recovering;
    case 'STOPPING':
      return MultiplexState.stopping;
    case 'DELETING':
      return MultiplexState.deleting;
    case 'DELETED':
      return MultiplexState.deleted;
  }
  throw Exception('$this is not known in enum MultiplexState');
}