mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add endpoint for StockLocation model
This commit is contained in:
parent
df0b3c796c
commit
0bf02dad64
1 changed files with 21 additions and 0 deletions
|
|
@ -19,4 +19,25 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class InvenTreeStockLocation extends InvenTreeModel {
|
||||||
|
@override
|
||||||
|
String URL = "stock/location/";
|
||||||
|
|
||||||
|
InvenTreeStockLocation() : super();
|
||||||
|
|
||||||
|
InvenTreeStockLocation.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||||
|
|
||||||
|
var loc = InvenTreeStockLocation.fromJson(json);
|
||||||
|
|
||||||
|
return loc;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue