toGender method
Implementation
Gender toGender() {
switch (this) {
case 'Female':
return Gender.female;
case 'Male':
return Gender.male;
}
throw Exception('$this is not known in enum Gender');
}
Gender toGender() {
switch (this) {
case 'Female':
return Gender.female;
case 'Male':
return Gender.male;
}
throw Exception('$this is not known in enum Gender');
}