toAccelerationStatus method

AccelerationStatus toAccelerationStatus()

Implementation

AccelerationStatus toAccelerationStatus() {
  switch (this) {
    case 'NOT_APPLICABLE':
      return AccelerationStatus.notApplicable;
    case 'IN_PROGRESS':
      return AccelerationStatus.inProgress;
    case 'ACCELERATED':
      return AccelerationStatus.accelerated;
    case 'NOT_ACCELERATED':
      return AccelerationStatus.notAccelerated;
  }
  throw Exception('$this is not known in enum AccelerationStatus');
}