toServiceUpdateStatus method

ServiceUpdateStatus toServiceUpdateStatus()

Implementation

ServiceUpdateStatus toServiceUpdateStatus() {
  switch (this) {
    case 'available':
      return ServiceUpdateStatus.available;
    case 'cancelled':
      return ServiceUpdateStatus.cancelled;
    case 'expired':
      return ServiceUpdateStatus.expired;
  }
  throw Exception('$this is not known in enum ServiceUpdateStatus');
}