parseSexo static method
Implementation
static Sexo parseSexo(dynamic value) {
if (value == null) return Sexo.desconhecido;
final v = value.toString().toLowerCase();
if (v.startsWith('m')) return Sexo.masculino;
if (v.startsWith('f')) return Sexo.feminino;
return Sexo.desconhecido;
}