MFGetPaymentStatusResponse.fromJson constructor
MFGetPaymentStatusResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
MFGetPaymentStatusResponse.fromJson(Map<String, dynamic> json) {
invoiceId = json['InvoiceId'];
invoiceStatus = json['InvoiceStatus'];
invoiceReference = json['InvoiceReference'];
customerReference = json['CustomerReference'];
createdDate = json['CreatedDate'];
expiryDate = json['ExpiryDate'];
expiryTime = json['ExpiryTime'];
invoiceValue = json['InvoiceValue'];
comments = json['Comments'];
customerName = json['CustomerName'];
customerMobile = json['CustomerMobile'];
customerEmail = json['CustomerEmail'];
userDefinedField = json['UserDefinedField'];
invoiceDisplayValue = json['InvoiceDisplayValue'];
dueDeposit = json['DueDeposit'];
recurringId = json['RecurringId'];
depositStatus = json['DepositStatus'];
if (json['InvoiceItems'] != null) {
invoiceItems = <MFInvoiceItem>[];
json['InvoiceItems'].forEach((v) {
invoiceItems!.add(MFInvoiceItem.fromJson(v));
});
}
if (json['InvoiceTransactions'] != null) {
invoiceTransactions = <MFInvoiceTransaction>[];
json['InvoiceTransactions'].forEach((v) {
invoiceTransactions!.add(MFInvoiceTransaction.fromJson(v));
});
}
if (json['Suppliers'] != null) {
suppliers = <MFSupplier>[];
json['Suppliers'].forEach((v) {
suppliers!.add(MFSupplier.fromJson(v));
});
}
}