toSpecialty method

Specialty toSpecialty()

Implementation

Specialty toSpecialty() {
  switch (this) {
    case 'PRIMARYCARE':
      return Specialty.primarycare;
  }
  throw Exception('$this is not known in enum Specialty');
}