toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OperationStatus.notStarted:
      return 'NotStarted';
    case OperationStatus.started:
      return 'Started';
    case OperationStatus.failed:
      return 'Failed';
    case OperationStatus.completed:
      return 'Completed';
    case OperationStatus.succeeded:
      return 'Succeeded';
  }
}