toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
    "createdByUserName": createdByUserName,
    "updatedByUserName": updatedByUserName,
    "createdDate": createdDate,
    "updatedBy": updatedBy,
    "updatedDate": updatedDate,
    "id": id,
    "organizationId": organizationId,
    "customerDetails": customerDetails?.toMap(),
    "status": status,
    "dueDate": dueDate,
    "archived": archived,
    "type": type,
    "mainOrderId": mainOrderId,
    "refundableAmount": refundableAmount,
    "credit": credit?.toMap(),
    "debit": debit?.toMap(),
    "balance": balance?.toMap(),
    "paymentDueDate": paymentDueDate,
    "transactionType": transactionType,
    "saleExtendedDetails": saleExtendedDetails?.toMap(),
    "overdue": overdue,
    "canceled": canceled,
    "creditInvoice": creditInvoice,
    "closed": closed,
    "open": open,
    "paymentStatus": paymentStatus,
    "allowModifyPayment": allowModifyPayment,
    "invoiceNumber": invoiceNumber,
    "ageing": ageing,
    "refundable": refundable,
};