ResponseLog.fromSat constructor
Implementation
factory ResponseLog.fromSat(List<String?> consulta) {
final consultaMap = consulta.asMap();
final status = ResponseLog(
numeroSessao: consulta[0] ?? '',
codStatus: consulta[1] ?? '',
mensagem: consulta[2] ?? '',
cod: consulta[3] ?? '',
mensagemSefaz: consultaMap.containsKey(4) ? consulta[4]! : '',
log: consultaMap.containsKey(5)
? ((consulta[5] ?? '') != '')
? Utils.base64ToString(consulta[5]!)
: ''
: '');
return status;
}