toShareStatus method

ShareStatus toShareStatus()

Implementation

ShareStatus toShareStatus() {
  switch (this) {
    case 'NOT_STARTED':
      return ShareStatus.notStarted;
    case 'IN_PROGRESS':
      return ShareStatus.inProgress;
    case 'COMPLETED':
      return ShareStatus.completed;
    case 'COMPLETED_WITH_ERRORS':
      return ShareStatus.completedWithErrors;
    case 'ERROR':
      return ShareStatus.error;
  }
  throw Exception('$this is not known in enum ShareStatus');
}