class DeliveryLineModel {
  int? id;
  int? assetDeliveryInternalDetailId;
  String? itemNumber;
  String? itemDescription;
  num? qty;
  num? remainingQty;
  num? usingQtyInThisDelivery;
  num? unitPrice;
  num? total;
  String? unitOfMeasure;
  String? lineType;
  String? itemCategory;

  DeliveryLineModel({
    this.id,
    this.assetDeliveryInternalDetailId,
    this.itemNumber,
    this.itemDescription,
    this.qty,
    this.remainingQty,
    this.usingQtyInThisDelivery,
    this.unitPrice,
    this.total,
    this.unitOfMeasure,
    this.lineType,
    this.itemCategory,
  });

  DeliveryLineModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    assetDeliveryInternalDetailId = json['assetDeliveryInternalDetailId'];
    itemNumber = json['itemNumber'];
    itemDescription = json['itemDescription'];
    qty = json['qty'];
    remainingQty = json['remainingQty'];
    usingQtyInThisDelivery = json['usingQtyInThisDelivery'];
    unitPrice = json['unitPrice'];
    total = json['total'];
    unitOfMeasure = json['unitOfMeasure'];
    lineType = json['lineType'];
    itemCategory = json['itemCategory'];
  }

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'assetDeliveryInternalDetailId': assetDeliveryInternalDetailId,
      'itemNumber': itemNumber,
      'itemDescription': itemDescription,
      'qty': qty,
      'remainingQty': remainingQty,
      'usingQtyInThisDelivery': usingQtyInThisDelivery,
      'unitPrice': unitPrice,
      'total': total,
      'unitOfMeasure': unitOfMeasure,
      'lineType': lineType,
      'itemCategory': itemCategory,
    };
  }
}
