toStopType method

StopType toStopType()

Implementation

StopType toStopType() {
  switch (this) {
    case 'Complete':
      return StopType.complete;
    case 'Cancel':
      return StopType.cancel;
  }
  throw Exception('$this is not known in enum StopType');
}