toRegistrationStatus method

RegistrationStatus toRegistrationStatus()

Implementation

RegistrationStatus toRegistrationStatus() {
  switch (this) {
    case 'Registered':
      return RegistrationStatus.registered;
    case 'Deregistered':
      return RegistrationStatus.deregistered;
  }
  throw Exception('$this is not known in enum RegistrationStatus');
}