InvoiceDuplicateRequestMessage.fromMap constructor

InvoiceDuplicateRequestMessage.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory InvoiceDuplicateRequestMessage.fromMap(Map<String, dynamic> map) {
  return InvoiceDuplicateRequestMessage(
    newDueDate: map['due_date'],
    invoiceItems: List<Item>.from(map['items']?.map((x) => Item.fromMap(x))),
    ignoreDueEmail: map['ignore_due_email'],
    ignoreCanceledEmail: map['ignore_canceled_email'],
  );
}