getNomeTipoPessoa static method
- String tipo
Obtém o nome do tipo de pessoa
Implementation
static String getNomeTipoPessoa(String tipo) {
switch (tipo) {
case tipoCpf:
return 'CPF';
case tipoCnpj:
return 'CNPJ';
default:
return 'Desconhecido';
}
}