toCancelTimerFailedCause method

CancelTimerFailedCause toCancelTimerFailedCause()

Implementation

CancelTimerFailedCause toCancelTimerFailedCause() {
  switch (this) {
    case 'TIMER_ID_UNKNOWN':
      return CancelTimerFailedCause.timerIdUnknown;
    case 'OPERATION_NOT_PERMITTED':
      return CancelTimerFailedCause.operationNotPermitted;
  }
  throw Exception('$this is not known in enum CancelTimerFailedCause');
}