mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add model for ManufacturerPart
This commit is contained in:
parent
77532a4026
commit
76e0dd6803
1 changed files with 20 additions and 1 deletions
|
|
@ -58,4 +58,23 @@ class InvenTreeSupplierPart extends InvenTreeModel {
|
|||
|
||||
return part;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class InvenTreeManufacturerPart extends InvenTreeModel {
|
||||
|
||||
@override
|
||||
String url = "company/part/manufacturer/";
|
||||
|
||||
InvenTreeManufacturerPart() : super();
|
||||
|
||||
InvenTreeManufacturerPart.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
}
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
var part = InvenTreeManufacturerPart.fromJson(json);
|
||||
|
||||
return part;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue