toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['order_id'] = _orderId;
map['bill_type'] = _billType;
map['order_number'] = _orderNumber;
map['total_item'] = _totalItem;
map['payment_method'] = _paymentMethod;
map['sub_total'] = _subTotal;
map['discount'] = _discount;
map['tax'] = _tax;
map['grand_total'] = _grandTotal;
map['payable'] = _payable;
if (_status != null) {
map['status'] = _status?.toJson();
}
map['pick_up_options'] = _pickUpOptions;
map['pick_up_priority'] = _pickUpPriority;
map['remarks'] = _remarks;
if (_createdAtDateTime != null) {
map['created_at_date_time'] = _createdAtDateTime?.toJson();
}
return map;
}