toPhaseStatus method

PhaseStatus toPhaseStatus()

Implementation

PhaseStatus toPhaseStatus() {
  switch (this) {
    case 'PENDING':
      return PhaseStatus.pending;
    case 'SUCCESS':
      return PhaseStatus.success;
    case 'ERROR':
      return PhaseStatus.error;
  }
  throw Exception('$this is not known in enum PhaseStatus');
}