toValue method
Implementation
String toValue() {
switch (this) {
case OperationStatus.submitted:
return 'SUBMITTED';
case OperationStatus.pending:
return 'PENDING';
case OperationStatus.success:
return 'SUCCESS';
case OperationStatus.fail:
return 'FAIL';
}
}