toImportStatus method

ImportStatus toImportStatus()

Implementation

ImportStatus toImportStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return ImportStatus.inProgress;
    case 'COMPLETE':
      return ImportStatus.complete;
    case 'FAILED':
      return ImportStatus.failed;
  }
  throw Exception('$this is not known in enum ImportStatus');
}