diff --git a/lib/inventree/company.dart b/lib/inventree/company.dart index 7958d7f3..48fc6d29 100644 --- a/lib/inventree/company.dart +++ b/lib/inventree/company.dart @@ -58,4 +58,23 @@ class InvenTreeSupplierPart extends InvenTreeModel { return part; } -} \ No newline at end of file +} + + +class InvenTreeManufacturerPart extends InvenTreeModel { + + @override + String url = "company/part/manufacturer/"; + + InvenTreeManufacturerPart() : super(); + + InvenTreeManufacturerPart.fromJson(Map json) : super.fromJson(json) { + } + + @override + InvenTreeModel createFromJson(Map json) { + var part = InvenTreeManufacturerPart.fromJson(json); + + return part; + } +}