2
0
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:
Oliver Walters 2020-04-01 10:04:55 +11:00
parent df0b3c796c
commit 0bf02dad64

View File

@ -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;
}
}