from static method

BiologicalSex? from(
  1. String? description
)

Implementation

static BiologicalSex? from(String? description) {
  switch (description) {
    case 'na':
      return BiologicalSex.notSet;
    case 'Female':
      return BiologicalSex.female;
    case 'Male':
      return BiologicalSex.male;
    case 'Other':
      return BiologicalSex.other;
    default:
      return null;
  }
}