encode static method
Implementation
static String encode(Gender value) {
switch (value) {
case Gender.male:
return 'male';
case Gender.female:
return 'female';
case Gender.indeterminate:
return 'indeterminate';
case Gender.changed:
return 'changed';
case Gender.changedToMale:
return 'changedToMale';
case Gender.changedToFemale:
return 'changedToFemale';
case Gender.unknown:
return 'unknown';
}
}