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:
parent
7304484369
commit
1faf0fc575
@ -12,6 +12,16 @@ class InvenTreeCompany extends InvenTreeModel {
|
|||||||
|
|
||||||
String get image => jsondata['image'] ?? '';
|
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) {
|
InvenTreeCompany.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user