toValue method
Implementation
String toValue() {
switch (this) {
case RegistrationStatus.unregistered:
return 'Unregistered';
case RegistrationStatus.registered:
return 'Registered';
case RegistrationStatus.suspended:
return 'Suspended';
}
}