fromMap static method
Implementation
static InvoiceCreditNoteApplicationsData? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return InvoiceCreditNoteApplicationsData(
amount: readDecimal(source['amount']),
createdBy: InvoiceCreditNoteApplicationsDataCreatedBy.fromMap(
source['created_by']),
createdOn: readText(source['created_on']),
creditNote: InvoiceCreditNoteApplicationsDataCreditNote.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:
InvoiceCreditNoteApplicationsDataPayment.fromMap(source['payment']),
primaryId: readInteger(source['primaryId']),
refund: readAny(source['refund']),
remainingBalance: readDecimal(source['remaining_balance']),
status: readText(source['status']),
version: readInteger(source['version']),
);
}