toExportTaskStatusCode method

ExportTaskStatusCode toExportTaskStatusCode()

Implementation

ExportTaskStatusCode toExportTaskStatusCode() {
  switch (this) {
    case 'CANCELLED':
      return ExportTaskStatusCode.cancelled;
    case 'COMPLETED':
      return ExportTaskStatusCode.completed;
    case 'FAILED':
      return ExportTaskStatusCode.failed;
    case 'PENDING':
      return ExportTaskStatusCode.pending;
    case 'PENDING_CANCEL':
      return ExportTaskStatusCode.pendingCancel;
    case 'RUNNING':
      return ExportTaskStatusCode.running;
  }
  throw Exception('$this is not known in enum ExportTaskStatusCode');
}