toAvailabilityMonitorTestStatus method

AvailabilityMonitorTestStatus toAvailabilityMonitorTestStatus()

Implementation

AvailabilityMonitorTestStatus toAvailabilityMonitorTestStatus() {
  switch (this) {
    case 'COMPLETE':
      return AvailabilityMonitorTestStatus.complete;
    case 'FAILED':
      return AvailabilityMonitorTestStatus.failed;
    case 'PENDING':
      return AvailabilityMonitorTestStatus.pending;
  }
  throw Exception('$this is not known in enum AvailabilityMonitorTestStatus');
}