toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PhaseStatus.pending:
      return 'PENDING';
    case PhaseStatus.success:
      return 'SUCCESS';
    case PhaseStatus.error:
      return 'ERROR';
  }
}