fromMap static method

Implementation

static PurchasePaymentUpdatedPurchaseInvoiceApplication? fromMap(
    Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchasePaymentUpdatedPurchaseInvoiceApplication(
    applied: readText(source['applied']),
    dueDate: readText(source['due_date']),
    issueDate: readText(source['issue_date']),
    outstanding: readText(source['outstanding']),
    purchaseInvoice:
        PurchasePaymentUpdatedPurchaseInvoiceApplicationPurchaseInvoice
            .fromMap(source['purchase_invoice']),
    total: readText(source['total']),
  );
}