toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'due_date': newDueDate,
    'items': invoiceItems?.map((x) => x.toMap()).toList(),
    'ignore_due_email': ignoreDueEmail,
    'ignore_canceled_email': ignoreCanceledEmail,
  }..removeWhere((key, value) => value == null);
}