toNotifyWorkersFailureCode method

NotifyWorkersFailureCode toNotifyWorkersFailureCode()

Implementation

NotifyWorkersFailureCode toNotifyWorkersFailureCode() {
  switch (this) {
    case 'SoftFailure':
      return NotifyWorkersFailureCode.softFailure;
    case 'HardFailure':
      return NotifyWorkersFailureCode.hardFailure;
  }
  throw Exception('$this is not known in enum NotifyWorkersFailureCode');
}