2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-16 05:53:10 +00:00

Data introspection for Company model

This commit is contained in:
Oliver Walters 2020-04-07 00:09:23 +10:00
parent 7304484369
commit 1faf0fc575

View File

@ -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<String, dynamic> json) : super.fromJson(json) {
// TODO
}