diff --git a/lib/inventree/stock.dart b/lib/inventree/stock.dart index 326c2868..53f59386 100644 --- a/lib/inventree/stock.dart +++ b/lib/inventree/stock.dart @@ -19,4 +19,25 @@ class InvenTreeStockItem extends InvenTreeModel { return item; } +} + + +class InvenTreeStockLocation extends InvenTreeModel { + @override + String URL = "stock/location/"; + + InvenTreeStockLocation() : super(); + + InvenTreeStockLocation.fromJson(Map json) : super.fromJson(json) { + + } + + @override + InvenTreeModel createFromJson(Map json) { + + var loc = InvenTreeStockLocation.fromJson(json); + + return loc; + + } } \ No newline at end of file