toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'idDeclaracao': idDeclaracao,
'dataHoraTransmissao': dataHoraTransmissao,
'valoresDevidos': valoresDevidos.map((v) => v.toJson()).toList(),
'declaracao': declaracao,
'recibo': recibo,
if (notificacaoMaed != null) 'notificacaoMaed': notificacaoMaed,
if (darf != null) 'darf': darf,
if (detalhamentoDarfMaed != null)
'detalhamentoDarfMaed': detalhamentoDarfMaed!.toJson(),
};
}