toOperationStatus method
Implementation
OperationStatus toOperationStatus() {
switch (this) {
case 'SUBMITTED':
return OperationStatus.submitted;
case 'PENDING':
return OperationStatus.pending;
case 'SUCCESS':
return OperationStatus.success;
case 'FAIL':
return OperationStatus.fail;
}
throw Exception('$this is not known in enum OperationStatus');
}