fromMap static method
Implementation
static CreditNoteApplicationRead? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'credit_note_application');
if (source == null) return null;
return CreditNoteApplicationRead(
amount: readDecimal(source['amount']),
createdBy:
CreditNoteApplicationReadCreatedBy.fromMap(source['created_by']),
createdOn: readText(source['created_on']),
creditNote:
CreditNoteApplicationReadCreditNote.fromMap(source['credit_note']),
href: readText(source['href']),
id: readText(source['id']),
issueDate: readText(source['issue_date']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
object: readText(source['object']),
payment: CreditNoteApplicationReadPayment.fromMap(source['payment']),
primaryid: readInteger(source['primaryId']),
refund: CreditNoteApplicationReadRefund.fromMap(source['refund']),
remainingBalance: readDecimal(source['remaining_balance']),
status: readText(source['status']),
version: readInteger(source['version']),
);
}