toTargetStatus method

TargetStatus toTargetStatus()

Implementation

TargetStatus toTargetStatus() {
  switch (this) {
    case 'PENDING':
      return TargetStatus.pending;
    case 'ACTIVE':
      return TargetStatus.active;
    case 'UNREACHABLE':
      return TargetStatus.unreachable;
    case 'INACTIVE':
      return TargetStatus.inactive;
    case 'DEACTIVATED':
      return TargetStatus.deactivated;
  }
  throw Exception('$this is not known in enum TargetStatus');
}