genderToApiString function
- Gender gender
Implementation
String genderToApiString(Gender gender) => const {
Gender.male: 'male',
Gender.female: 'female',
Gender.nonBinary: 'nonbinary',
Gender.unknown: '', // TODO confirm gender unknown string value
}[gender]!;