toValue method
Implementation
String toValue() {
switch (this) {
case Gender.female:
return 'Female';
case Gender.male:
return 'Male';
}
}
String toValue() {
switch (this) {
case Gender.female:
return 'Female';
case Gender.male:
return 'Male';
}
}