From 1faf0fc575923ceccf1fe83dce45fbe09fe47fe1 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 7 Apr 2020 00:09:23 +1000 Subject: [PATCH] Data introspection for Company model --- lib/inventree/company.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/inventree/company.dart b/lib/inventree/company.dart index 9dbd5c41..74ff87c8 100644 --- a/lib/inventree/company.dart +++ b/lib/inventree/company.dart @@ -12,6 +12,16 @@ class InvenTreeCompany extends InvenTreeModel { String get image => jsondata['image'] ?? ''; + String get website => jsondata['website'] ?? ''; + + String get phone => jsondata['phone'] ?? ''; + + String get email => jsondata['email'] ?? ''; + + bool get isSupplier => jsondata['is_supplier'] ?? false; + + bool get isCustomer => jsondata['is_customer'] ?? false; + InvenTreeCompany.fromJson(Map json) : super.fromJson(json) { // TODO }