mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add endpoint for StockItem model
This commit is contained in:
parent
e9b0cc3128
commit
df0b3c796c
1 changed files with 22 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue