toOperationStatus method
Implementation
OperationStatus toOperationStatus() {
switch (this) {
case 'PENDING':
return OperationStatus.pending;
case 'IN_PROGRESS':
return OperationStatus.inProgress;
case 'SUCCESS':
return OperationStatus.success;
case 'FAILED':
return OperationStatus.failed;
}
throw Exception('$this is not known in enum OperationStatus');
}