InvoiceRequestMessage.fromMap constructor
InvoiceRequestMessage.fromMap(
- Map<String, dynamic> map
)
Implementation
factory InvoiceRequestMessage.fromMap(Map<String, dynamic> map) {
return InvoiceRequestMessage(
email: map['email'],
dueDate: map['dueDate'],
items: List<Item>.from(map['items']?.map((x) => Item.fromMap(x))),
payer: PayerModel.fromMap(map['payer']),
returnUrl: map['returnUrl'],
expiredUrl: map['expiredUrl'],
notificationUrl: map['notificationUrl'],
taxCents: map['taxCents'],
enableLateFine: map['enableLateFine'],
latePaymentFine: map['latePaymentFine'],
enableProportionalDailyTax: map['enableProportionalDailyTax'],
discountCents: map['discountCents'],
customerId: map['customerId'],
ignoreDueDateMail: map['ignoreDueDateMail'],
subscriptionId: map['subscriptionId'],
paymentMethod: map['paymentMethod'],
credits: map['credits'],
logs: List<Logs>.from(map['logs']?.map((x) => Logs.fromMap(x))),
enableEarlyPaymentDiscount: map['enableEarlyPaymentDiscount'],
earlyPaymentDiscounts: List<EarlyPaymentDiscounts>.from(map['earlyPaymentDiscounts']?.map((x) => EarlyPaymentDiscounts.fromMap(x))),
customVariables: List<CustomVariables>.from(map['customVariables']?.map((x) => CustomVariables.fromMap(x))),
);
}