toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OperationStatus.pending:
      return 'PENDING';
    case OperationStatus.inProgress:
      return 'IN_PROGRESS';
    case OperationStatus.success:
      return 'SUCCESS';
    case OperationStatus.failed:
      return 'FAILED';
  }
}