toValue method
Implementation
String toValue() {
switch (this) {
case OperationStatus.submitted:
return 'SUBMITTED';
case OperationStatus.inProgress:
return 'IN_PROGRESS';
case OperationStatus.error:
return 'ERROR';
case OperationStatus.successful:
return 'SUCCESSFUL';
case OperationStatus.failed:
return 'FAILED';
}
}