mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Add endpoint for StockLocation model
This commit is contained in:
parent
df0b3c796c
commit
0bf02dad64
@ -20,3 +20,24 @@ 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…
x
Reference in New Issue
Block a user