mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
More cleanup
This commit is contained in:
parent
d2ce3fadf1
commit
83e29777c2
12 changed files with 23 additions and 60 deletions
|
|
@ -48,9 +48,7 @@ class InvenTreePartCategory extends InvenTreeModel {
|
|||
|
||||
InvenTreePartCategory() : super();
|
||||
|
||||
InvenTreePartCategory.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
|
||||
}
|
||||
InvenTreePartCategory.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
|
|
@ -85,8 +83,7 @@ class InvenTreePartTestTemplate extends InvenTreeModel {
|
|||
|
||||
InvenTreePartTestTemplate() : super();
|
||||
|
||||
InvenTreePartTestTemplate.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
}
|
||||
InvenTreePartTestTemplate.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
|
|
@ -309,11 +306,6 @@ class InvenTreePart extends InvenTreeModel {
|
|||
name: 'image',
|
||||
);
|
||||
|
||||
if (response == null) {
|
||||
print("uploadImage returned null at '${url}'");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
print("uploadImage returned ${response.statusCode} at '${url}'");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue