toValue method
Implementation
String toValue() {
switch (this) {
case RecordStatus.created:
return 'CREATED';
case RecordStatus.inProgress:
return 'IN_PROGRESS';
case RecordStatus.inProgressInError:
return 'IN_PROGRESS_IN_ERROR';
case RecordStatus.succeeded:
return 'SUCCEEDED';
case RecordStatus.failed:
return 'FAILED';
}
}