fromMap static method

Implementation

static PurchaseInvoicePurchasePaymentCreditNoteApplication? fromMap(
    Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseInvoicePurchasePaymentCreditNoteApplication(
    amount: readText(source['amount']),
    purchaseCreditNote:
        PurchaseInvoicePurchasePaymentCreditNoteApplicationPurchaseCreditNote
            .fromMap(source['purchase_credit_note']),
  );
}