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