toMap method
Implementation
Map<String, dynamic> toMap() {
return {
if (id != null) 'id': id,
if (isCharge != null) 'isCharge': isCharge,
if (reason != null) 'reason': reason,
if (percent != null) 'percent': percent,
if (amount != null) 'amount': amount,
if (base != null) 'base': base,
};
}