toStackInstanceDetailedStatus method

StackInstanceDetailedStatus toStackInstanceDetailedStatus()

Implementation

StackInstanceDetailedStatus toStackInstanceDetailedStatus() {
  switch (this) {
    case 'PENDING':
      return StackInstanceDetailedStatus.pending;
    case 'RUNNING':
      return StackInstanceDetailedStatus.running;
    case 'SUCCEEDED':
      return StackInstanceDetailedStatus.succeeded;
    case 'FAILED':
      return StackInstanceDetailedStatus.failed;
    case 'CANCELLED':
      return StackInstanceDetailedStatus.cancelled;
    case 'INOPERABLE':
      return StackInstanceDetailedStatus.inoperable;
  }
  throw Exception('$this is not known in enum StackInstanceDetailedStatus');
}