genderToApiString function

String genderToApiString(
  1. 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]!;