toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['order_id'] = _orderId;
  map['order_number'] = _orderNumber;
  map['total_item'] = _totalItem;
  map['sub_total'] = _subTotal;
  map['discount'] = _discount;
  map['grand_total'] = _grandTotal;
  if (_status != null) {
    map['status'] = _status?.toJson();
  }
  map['remarks'] = _remarks;
  if (_createdAtDateTime != null) {
    map['created_at_date_time'] = _createdAtDateTime?.toJson();
  }
  map['modify_btn_show'] = _modifyBtnShow;
  map['place_by_type'] = _placeByType;
  map['cn_type'] = _cnType;
  return map;
}