toContactStatus method

ContactStatus toContactStatus()

Implementation

ContactStatus toContactStatus() {
  switch (this) {
    case 'AVAILABLE':
      return ContactStatus.available;
    case 'AWS_CANCELLED':
      return ContactStatus.awsCancelled;
    case 'AWS_FAILED':
      return ContactStatus.awsFailed;
    case 'CANCELLED':
      return ContactStatus.cancelled;
    case 'CANCELLING':
      return ContactStatus.cancelling;
    case 'COMPLETED':
      return ContactStatus.completed;
    case 'FAILED':
      return ContactStatus.failed;
    case 'FAILED_TO_SCHEDULE':
      return ContactStatus.failedToSchedule;
    case 'PASS':
      return ContactStatus.pass;
    case 'POSTPASS':
      return ContactStatus.postpass;
    case 'PREPASS':
      return ContactStatus.prepass;
    case 'SCHEDULED':
      return ContactStatus.scheduled;
    case 'SCHEDULING':
      return ContactStatus.scheduling;
  }
  throw Exception('$this is not known in enum ContactStatus');
}