toStatusType method

StatusType toStatusType()

Implementation

StatusType toStatusType() {
  switch (this) {
    case 'SUCCEEDED':
      return StatusType.succeeded;
    case 'FAILED':
      return StatusType.failed;
    case 'FAULT':
      return StatusType.fault;
    case 'TIMED_OUT':
      return StatusType.timedOut;
    case 'IN_PROGRESS':
      return StatusType.inProgress;
    case 'STOPPED':
      return StatusType.stopped;
  }
  throw Exception('$this is not known in enum StatusType');
}