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 }