toRecordState method
Implementation
RecordState toRecordState() {
switch (this) {
case 'Started':
return RecordState.started;
case 'Succeeded':
return RecordState.succeeded;
case 'Failed':
return RecordState.failed;
}
throw Exception('$this is not known in enum RecordState');
}