2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-04 08:18:54 +00:00

Add model for ManufacturerPart

This commit is contained in:
Oliver 2021-08-02 11:51:49 +10:00
parent 77532a4026
commit 76e0dd6803

View File

@ -59,3 +59,22 @@ class InvenTreeSupplierPart extends InvenTreeModel {
return part; 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;
}
}