toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case GenderType.male:
      return 'Male';
    case GenderType.female:
      return 'Female';
  }
}