toReplayState method
Implementation
ReplayState toReplayState() {
switch (this) {
case 'STARTING':
return ReplayState.starting;
case 'RUNNING':
return ReplayState.running;
case 'CANCELLING':
return ReplayState.cancelling;
case 'COMPLETED':
return ReplayState.completed;
case 'CANCELLED':
return ReplayState.cancelled;
case 'FAILED':
return ReplayState.failed;
}
throw Exception('$this is not known in enum ReplayState');
}