toProactiveEngagementStatus method

ProactiveEngagementStatus toProactiveEngagementStatus()

Implementation

ProactiveEngagementStatus toProactiveEngagementStatus() {
  switch (this) {
    case 'ENABLED':
      return ProactiveEngagementStatus.enabled;
    case 'DISABLED':
      return ProactiveEngagementStatus.disabled;
    case 'PENDING':
      return ProactiveEngagementStatus.pending;
  }
  throw Exception('$this is not known in enum ProactiveEngagementStatus');
}