You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/modules/asset_delivery_module/models/delivery_line_model.dart

62 lines
1.6 KiB
Dart

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,
};
}
}