getNomeTipoPessoa static method

String getNomeTipoPessoa(
  1. 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';
  }
}