getChaves method
Implementation
Map<String, dynamic> getChaves(
{Map<String, dynamic>? dados,
List<FiltroBase>? filtros,
String? tabela,
int? tipo,
bool isLista = false,
String campodescricao = "descricao"}) {
List<Map<String, dynamic>> f = [];
if (filtros != null) {
for (int i = 0; i < filtros.length; i++) {
f.add(filtros[i].toJson());
}
}
return {
"dados": json.encode(dados ?? {}),
"tabela": tabela ?? "",
"idsistema": 1,
"operador": usuarioLogado?.usuario ?? "",
"id": usuarioLogado?.id ?? "-1",
"tipo": tipo ?? 4,
"filtros": f,
"isLista": isLista,
"campodescricao": campodescricao
};
}