ListElement.fromMap constructor
ListElement.fromMap(
- Map<String, dynamic> json
)
Implementation
factory ListElement.fromMap(Map<String, dynamic> json) => ListElement(
createdByUserName: json["createdByUserName"],
updatedByUserName: json["updatedByUserName"],
createdDate: json["createdDate"],
updatedBy: json["updatedBy"],
updatedDate: json["updatedDate"],
id: json["id"],
organizationId: json["organizationId"],
customerDetails: json["customerDetails"] == null ? null : CustomerDetails.fromMap(json["customerDetails"]),
status: json["status"],
dueDate: json["dueDate"],
archived: json["archived"],
type: json["type"],
mainOrderId: json["mainOrderId"],
refundableAmount: json["refundableAmount"],
credit: json["credit"] == null ? null : Balance.fromMap(json["credit"]),
debit: json["debit"] == null ? null : Balance.fromMap(json["debit"]),
balance: json["balance"] == null ? null : Balance.fromMap(json["balance"]),
paymentDueDate: json["paymentDueDate"],
transactionType: json["transactionType"],
saleExtendedDetails: json["saleExtendedDetails"] == null ? null : SaleExtendedDetails.fromMap(json["saleExtendedDetails"]),
overdue: json["overdue"],
canceled: json["canceled"],
creditInvoice: json["creditInvoice"],
closed: json["closed"],
open: json["open"],
paymentStatus: json["paymentStatus"],
allowModifyPayment: json["allowModifyPayment"],
invoiceNumber: json["invoiceNumber"],
ageing: json["ageing"],
refundable: json["refundable"],
);