mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Add endpoint for StockItem model
This commit is contained in:
parent
e9b0cc3128
commit
df0b3c796c
22
lib/inventree/stock.dart
Normal file
22
lib/inventree/stock.dart
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import 'model.dart';
|
||||||
|
|
||||||
|
|
||||||
|
class InvenTreeStockItem extends InvenTreeModel {
|
||||||
|
@override
|
||||||
|
String URL = "stock/";
|
||||||
|
|
||||||
|
InvenTreeStockItem() : super();
|
||||||
|
|
||||||
|
InvenTreeStockItem.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||||
|
var item = InvenTreeStockItem.fromJson(json);
|
||||||
|
|
||||||
|
// TODO?
|
||||||
|
|
||||||
|
return item;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user