fromMap static method

Implementation

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