toRegistrationStatus method
Implementation
RegistrationStatus toRegistrationStatus() {
switch (this) {
case 'COMPLETE':
return RegistrationStatus.complete;
case 'IN_PROGRESS':
return RegistrationStatus.inProgress;
case 'FAILED':
return RegistrationStatus.failed;
}
throw Exception('$this is not known in enum RegistrationStatus');
}