From 76e0dd680305060f46f37e6cab02f5be2e198875 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 2 Aug 2021 11:51:49 +1000 Subject: [PATCH] Add model for ManufacturerPart --- lib/inventree/company.dart | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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; + } +}