apiValue property

String get apiValue

Implementation

String get apiValue {
  switch (this) {
    case male:
      return 'MALE';
    case female:
      return 'FEMALE';
    case nonBinary:
      return 'NON_BINARY';
    case preferNotToSay:
      return 'PREFER_NOT_TO_SAY';
    case other:
      return 'OTHER';
  }
}