toRegistrationStatus method

RegistrationStatus toRegistrationStatus()

Implementation

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