mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 03:35:28 +00:00
Add endpoint for StockItem model
This commit is contained in:
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;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user