toModelPackageStatus method
Implementation
ModelPackageStatus toModelPackageStatus() {
switch (this) {
case 'Pending':
return ModelPackageStatus.pending;
case 'InProgress':
return ModelPackageStatus.inProgress;
case 'Completed':
return ModelPackageStatus.completed;
case 'Failed':
return ModelPackageStatus.failed;
case 'Deleting':
return ModelPackageStatus.deleting;
}
throw Exception('$this is not known in enum ModelPackageStatus');
}