toParameterType method

ParameterType toParameterType()

Implementation

ParameterType toParameterType() {
  switch (this) {
    case 'Integer':
      return ParameterType.integer;
    case 'Continuous':
      return ParameterType.continuous;
    case 'Categorical':
      return ParameterType.categorical;
    case 'FreeText':
      return ParameterType.freeText;
  }
  throw Exception('$this is not known in enum ParameterType');
}