mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-11 08:04:14 +00:00
Add model for InvenTreePartAttachment
This commit is contained in:
@ -14,9 +14,6 @@ import 'package:inventree/api.dart';
|
||||
|
||||
class InvenTreeStockItemTestResult extends InvenTreeModel {
|
||||
|
||||
@override
|
||||
String NAME = "StockItemTestResult";
|
||||
|
||||
@override
|
||||
String get URL => "stock/test/";
|
||||
|
||||
@ -99,9 +96,6 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
String NAME = "StockItem";
|
||||
|
||||
@override
|
||||
String get URL => "stock/";
|
||||
|
||||
@ -464,11 +458,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
var item = InvenTreeStockItem.fromJson(json);
|
||||
|
||||
// TODO?
|
||||
|
||||
return item;
|
||||
return InvenTreeStockItem.fromJson(json);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -553,9 +543,6 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
class InvenTreeStockLocation extends InvenTreeModel {
|
||||
|
||||
@override
|
||||
String NAME = "StockLocation";
|
||||
|
||||
@override
|
||||
String get URL => "stock/location/";
|
||||
|
||||
@ -591,9 +578,7 @@ class InvenTreeStockLocation extends InvenTreeModel {
|
||||
|
||||
InvenTreeStockLocation() : super();
|
||||
|
||||
InvenTreeStockLocation.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
// TODO
|
||||
}
|
||||
InvenTreeStockLocation.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
|
Reference in New Issue
Block a user