toAttributeName method

AttributeName toAttributeName()

Implementation

AttributeName toAttributeName() {
  switch (this) {
    case 'SIGN':
      return AttributeName.sign;
    case 'SYMPTOM':
      return AttributeName.symptom;
    case 'DIAGNOSIS':
      return AttributeName.diagnosis;
    case 'NEGATION':
      return AttributeName.negation;
  }
  throw Exception('$this is not known in enum AttributeName');
}