mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-27 21:16:48 +00:00
Add endpoint for StockLocation model
This commit is contained in:
parent
df0b3c796c
commit
0bf02dad64
@ -19,4 +19,25 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
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…
x
Reference in New Issue
Block a user