toInstanceStatus method

InstanceStatus toInstanceStatus()

Implementation

InstanceStatus toInstanceStatus() {
  switch (this) {
    case 'Pending':
      return InstanceStatus.pending;
    case 'InProgress':
      return InstanceStatus.inProgress;
    case 'Succeeded':
      return InstanceStatus.succeeded;
    case 'Failed':
      return InstanceStatus.failed;
    case 'Skipped':
      return InstanceStatus.skipped;
    case 'Unknown':
      return InstanceStatus.unknown;
    case 'Ready':
      return InstanceStatus.ready;
  }
  throw Exception('$this is not known in enum InstanceStatus');
}