toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'email': email,
'due_date': dueDate,
'items': items?.map((x) => x.toMap()).toList(),
'payer': payer?.toMap(),
'returnUrl': returnUrl,
'expiredUrl': expiredUrl,
'notificationUrl': notificationUrl,
'taxCents': taxCents,
'enableLateFine': enableLateFine,
'latePaymentFine': latePaymentFine,
'enableProportionalDailyTax': enableProportionalDailyTax,
'discountCents': discountCents,
'customerId': customerId,
'ignoreDueDateMail': ignoreDueDateMail,
'subscription_id': subscriptionId,
'paymentMethod': paymentMethod,
'credits': credits,
'logs': logs?.map((x) => x.toMap()).toList(),
'enableEarlyPaymentDiscount': enableEarlyPaymentDiscount,
'earlyPaymentDiscounts': earlyPaymentDiscounts?.map((x) => x.toMap()).toList(),
'customVariables': customVariables?.map((x) => x.toMap()).toList(),
};
}