toReachabilityStatus method

ReachabilityStatus toReachabilityStatus()

Implementation

ReachabilityStatus toReachabilityStatus() {
  switch (this) {
    case 'PENDING':
      return ReachabilityStatus.pending;
    case 'DONE':
      return ReachabilityStatus.done;
    case 'EXPIRED':
      return ReachabilityStatus.expired;
  }
  throw Exception('$this is not known in enum ReachabilityStatus');
}